wl1251: fix null data for IBSS
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 18 Apr 2014 00:31:25 +0000 (03:31 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 19 Apr 2014 23:09:33 +0000 (02:09 +0300)
commit5618a309bdabcffa30b495e7ef9a28164c70e3cf
tree4ea6e492a1574a6dc671b195b1ec4f10877f5f0c
parent48f7897661fb92e22369766cdf6729fff74f9139
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: at net/mac80211/tx.c:2420 ieee80211_nullfunc_get+0xbc/0xc0
[<bf1bbc34>] (ieee80211_nullfunc_get+0xbc/0xc0 [mac80211])
[<bf2646a8>] (wl1251_op_bss_info_changed+0x150/0x328[wl1251])
[<bf1a120c>] (ieee80211_bss_info_change_notify+0xac/0x17c [mac80211])
[<bf1a92c4>] (__ieee80211_sta_join_ibss+0x364/0x4a4 [mac80211])

Also perform join command regardless of bss_type as that seems to be
required for proper operation.
drivers/net/wireless/wl1251/main.c