summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2012-05-30 02:39:04 +0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-04 23:21:21 +0400
commitf0e3bd23418e1ec1aeac5fc36b74bf2f645b1244 (patch)
treee552d9fbf53579878b16261f8811f2ab2dcc2d0d /drivers
parent925e64c3c512e9f4452eaa7d52fd4c1518b8fb11 (diff)
downloadlinux-f0e3bd23418e1ec1aeac5fc36b74bf2f645b1244.tar.xz
mwifiex: invalidate bss config before setting channel for uAP
Mark bss_config parameters as invalid before setting AP channel. This prevents from setting invalid parameters while setting AP channel to FW. Signed-off-by: Avinash Patil <patila@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')
-rw-r--r--drivers/net/wireless/mwifiex/uap_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/uap_cmd.c b/drivers/net/wireless/mwifiex/uap_cmd.c
index 76dfbc42a732..e9482c97e779 100644
--- a/drivers/net/wireless/mwifiex/uap_cmd.c
+++ b/drivers/net/wireless/mwifiex/uap_cmd.c
@@ -416,6 +416,7 @@ int mwifiex_uap_set_channel(struct mwifiex_private *priv, int channel)
if (!bss_cfg)
return -ENOMEM;
+ mwifiex_set_sys_config_invalid_data(bss_cfg);
bss_cfg->band_cfg = BAND_CONFIG_MANUAL;
bss_cfg->channel = channel;