From: Grazvydas Ignotas Date: Sat, 19 Apr 2014 19:37:11 +0000 (+0300) Subject: wl1251: make sure correct bss_type is set for monitor mode X-Git-Tag: sz_161~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=971afd5250ac1134b2a6ab700e4a30b46a9437c6 wl1251: make sure correct bss_type is set for monitor mode --- diff --git a/drivers/net/wireless/wl1251/main.c b/drivers/net/wireless/wl1251/main.c index 243d8d8091d1..5924cc6f2aa6 100644 --- a/drivers/net/wireless/wl1251/main.c +++ b/drivers/net/wireless/wl1251/main.c @@ -758,8 +758,13 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed) * This leaves the tx path disabled in firmware, whereas * the usual JOIN command seems to transmit some frames * at firmware level. + * + * Note that bss_type must be BSS_TYPE_STA_BSS, also at least + * one join has to be performed before CMD_ENABLE_RX can + * properly switch channels (join will be done by CONF_IDLE). */ if (wl->vif == NULL) { + wl->bss_type = BSS_TYPE_STA_BSS; wl->joined = false; ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1); } else {