Commit 82d8eba3 authored by Piotr Haber's avatar Piotr Haber Committed by John W. Linville

brcmsmac: don't start device when RfKill is engaged

This patch fixes a bug when device is being started
while RfKill switch is engaged, leading to hang
due to partial initialization of hardware.

Tested-by: <dragonn@op.pl>
Reviewed-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarPiotr Haber <phaber@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 81643292
...@@ -304,7 +304,10 @@ static int brcms_ops_start(struct ieee80211_hw *hw) ...@@ -304,7 +304,10 @@ static int brcms_ops_start(struct ieee80211_hw *hw)
wl->mute_tx = true; wl->mute_tx = true;
if (!wl->pub->up) if (!wl->pub->up)
if (!blocked)
err = brcms_up(wl); err = brcms_up(wl);
else
err = -ERFKILL;
else else
err = -ENODEV; err = -ENODEV;
spin_unlock_bh(&wl->lock); spin_unlock_bh(&wl->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment