]> git.karo-electronics.de Git - karo-tx-linux.git/commit
softmac: avoid assert in ieee80211softmac_wx_get_rate
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Apr 2007 19:30:35 +0000 (15:30 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Apr 2007 20:47:17 +0000 (13:47 -0700)
commit3c163bc0b44d31618fa8f08a5e149335f6c8cbc4
treecbdf6d9a616e76ab6934a85d2243acaec8ba2d7f
parentb95c2d9a59eab707fe82629fd7d0b4f3656d93be
softmac: avoid assert in ieee80211softmac_wx_get_rate

[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>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ieee80211/softmac/ieee80211softmac_wx.c