diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2012-11-05 16:22:29 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-14 14:56:02 -0500 |
commit | 6034d0a19175a3b898dc9f3ee5740275620969a2 (patch) | |
tree | 0a9ec857f31c5034e618e5bf9ec073934737059c /drivers/net/wireless/brcm80211/brcmfmac/fwil.c | |
parent | 256c374f7702c8c20413d2d7a14776dfad524a8d (diff) | |
download | linux-stable-6034d0a19175a3b898dc9f3ee5740275620969a2.tar.gz linux-stable-6034d0a19175a3b898dc9f3ee5740275620969a2.tar.bz2 linux-stable-6034d0a19175a3b898dc9f3ee5740275620969a2.zip |
brcmfmac: check bus state to be data before sending data.
brcmf_netdev_start_xmit and brcmf_fil_cmd_data are checking
bus state for down. These functions should check for data
state.
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/fwil.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/fwil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwil.c b/drivers/net/wireless/brcm80211/brcmfmac/fwil.c index f121d412495a..62e0960c1d3e 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/fwil.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwil.c @@ -35,7 +35,7 @@ brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set) struct brcmf_pub *drvr = ifp->drvr; s32 err; - if (drvr->bus_if->state == BRCMF_BUS_DOWN) { + if (drvr->bus_if->state != BRCMF_BUS_DATA) { brcmf_dbg(ERROR, "bus is down. we have nothing to do.\n"); return -EIO; } |