diff options
author | Avinash Patil <patila@marvell.com> | 2012-05-09 01:30:20 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 16:46:35 (GMT) |
commit | 4db16a18c25394348f821f0a1b4a7caa8567e071 (patch) | |
tree | 576422b497e10558ee0c13228c545e6b4735384d /drivers/net/wireless/mwifiex/cfg80211.c | |
parent | 40d07030625840156bffe2da3e9f14f87d7a4a99 (diff) | |
download | linux-fsl-qoriq-4db16a18c25394348f821f0a1b4a7caa8567e071.tar.xz |
mwifiex: add AP command sys_config and set channel
1. support for AP sys_config command and added parsing of channel
information.
2. support for setting AP channel from cfg80211 set_channel handler
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index e09f0c2..f3465fc 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c @@ -387,7 +387,10 @@ mwifiex_set_rf_channel(struct mwifiex_private *priv, if (mwifiex_bss_set_channel(priv, &cfp)) return -EFAULT; - return mwifiex_drv_change_adhoc_chan(priv, cfp.channel); + if (priv->bss_type == MWIFIEX_BSS_TYPE_STA) + return mwifiex_drv_change_adhoc_chan(priv, cfp.channel); + else + return mwifiex_uap_set_channel(priv, cfp.channel); } /* |