Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa4bbbe4 authored by Avinash Patil's avatar Avinash Patil Committed by John W. Linville
Browse files

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: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarKiran Divekar <dkiran@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cc1d2806
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -416,6 +416,7 @@ int mwifiex_uap_set_channel(struct mwifiex_private *priv, int channel)
	if (!bss_cfg)
	if (!bss_cfg)
		return -ENOMEM;
		return -ENOMEM;


	mwifiex_set_sys_config_invalid_data(bss_cfg);
	bss_cfg->band_cfg = BAND_CONFIG_MANUAL;
	bss_cfg->band_cfg = BAND_CONFIG_MANUAL;
	bss_cfg->channel = channel;
	bss_cfg->channel = channel;