Skip to content

Commit

Permalink
mwl8k: add AP firmware handling to ->start()
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Lennert Buytenhek authored and John W. Linville committed Nov 6, 2009
1 parent c0adae2 commit 5e4cf16
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -2713,22 +2713,24 @@ 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);

if (!rc)
rc = mwl8k_set_wmm(hw, 0);

if (!rc)
rc = mwl8k_enable_sniffer(hw, 0);

mwl8k_fw_unlock(hw);
}

Expand Down

0 comments on commit 5e4cf16

Please sign in to comment.