wl1251: fix null data for IBSS
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 22 Apr 2014 00:09:53 +0000 (03:09 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2014 19:56:16 +0000 (15:56 -0400)
commita5640612cfc13006ef69c0b2a7b12fc120212cb3
treed32e42e591ed2356520c03bd5122fb293e3f3176
parentd5738b41e555f97f597b19bc549fa811b516d6b6
wl1251: fix null data for IBSS

Fix the WARN below by not calling ieee80211_nullfunc_get() in IBSS mode,
but setting up empty template the same way wl12xx driver does.

WARNING: CPU: 0 PID: 914 at net/mac80211/tx.c:2750 ieee80211_nullfunc_get+0xc0/0xd0 [mac80211]()
Modules linked in: wl1251_sdio wl1251 mac80211 cfg80211
...
[<c00439c0>] (warn_slowpath_null)
[<bf0bdfdc>] (ieee80211_nullfunc_get [mac80211])
[<bf134774>] (wl1251_op_bss_info_changed [wl1251])
[<bf099e14>] (ieee80211_bss_info_change_notify [mac80211])
...

Also perform join command regardless of bss_type as that seems to be
required for proper operation.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wl1251/main.c