]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] softmac: avoid assert in ieee80211softmac_wx_get_rate
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jan 2007 02:22:05 +0000 (21:22 -0500)
committerJeff Garzik <jeff@garzik.org>
Mon, 5 Feb 2007 21:58:42 +0000 (16:58 -0500)
commit6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0
tree8547e58011042d938474332ffff5ef412602f69e
parentff86a543e9de35c5b17a289a58aed0be4e7b9d22
[PATCH] softmac: avoid assert in ieee80211softmac_wx_get_rate

Unconfigured bcm43xx device can hit an assert() during wx_get_rate
queries.  This is because bcm43xx calls ieee80211softmac_start late
(i.e. during open instead of probe).

   bcm43xx_net_open ->
      bcm43xx_init_board ->
         bcm43xx_select_wireless_core ->
            ieee80211softmac_start

Fix is to check that device is running before completing
ieee80211softmac_wx_get_rate.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/softmac/ieee80211softmac_wx.c