mwl8k: add AP firmware handling to ->start()
PATCH 25/28 mwl8k: add AP firmware handling to ->start()
Signed-off-by Lennert Buytenhek <[email protected]>
--- drivers/net/wireless/mwl8k.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-)
drivers/net/wireless/mwl8k.c +10 -8
@@ -2712,12 +2712,17 @@ static int mwl8k_start(struct ieee80211_hw *hw)if (!rc) { rc =mwl8k_cmd_802_11_radio_enable (hw); -if (!rc) - rc =mwl8k_cmd_set_pre_scan (hw); +if (!priv->ap_fw) { +if (!rc) + rc =mwl8k_enable_sniffer (hw,0 ); -if (!rc) - rc =mwl8k_cmd_set_post_scan (hw, -"\x00\x00\x00\x00\x00\x00" ); +if (!rc) + rc =mwl8k_cmd_set_pre_scan (hw); + +if (!rc) + rc =mwl8k_cmd_set_post_scan (hw, +"\x00\x00\x00\x00\x00\x00" ); + }if (!rc) rc =mwl8k_cmd_setrateadaptmode (hw,0 );
@@ -2725,9 +2730,6 @@ static int mwl8k_start(struct ieee80211_hw *hw)if (!rc) rc =mwl8k_set_wmm (hw,0 ); -if (!rc) - rc =mwl8k_enable_sniffer (hw,0 ); -mwl8k_fw_unlock (hw); }
Signature · 1 line
1.5.6.4