mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mwl8k: add AP firmware handling to ->start()
Signed-off-by: Lennert Buytenhek <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
c0adae2caa
commit
5e4cf166f4
1 changed files with 10 additions and 8 deletions
|
|
@ -2713,12 +2713,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);
|
||||
|
|
@ -2726,9 +2731,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue