git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
874c7e6
)
wl1251: make sure correct bss_type is set for monitor mode
author
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 19 Apr 2014 19:37:11 +0000
(22:37 +0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 19 Apr 2014 23:19:43 +0000
(
02:19
+0300)
drivers/net/wireless/wl1251/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl1251/main.c
b/drivers/net/wireless/wl1251/main.c
index
243d8d8
..
5924cc6
100644
(file)
--- 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 {