]> git.baikalelectronics.ru Git - kernel.git/commit
ipw2200: fix oops on missing firmware
authorZhu Yi <yi.zhu@intel.com>
Thu, 15 Oct 2009 06:50:28 +0000 (14:50 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 19:50:24 +0000 (15:50 -0400)
commit58737988270ae8e0a65585e2f94f73043b29a115
tree440f91d018016246c118d0165641e8332f648d65
parentc007a605779c3eb48da71bfbf23116c94868a991
ipw2200: fix oops on missing firmware

For non-monitor interfaces, the syntax for alloc_ieee80211/free_80211
is wrong. Because alloc_ieee80211 only creates (wiphy_new) a wiphy, but
free_80211() does wiphy_unregister() also. This is only correct when
the later wiphy_register() is called successfully, which apparently
is not the case for your fw doesn't exist one.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/ipw2100.c
drivers/net/wireless/ipw2x00/ipw2200.c
drivers/net/wireless/ipw2x00/libipw.h
drivers/net/wireless/ipw2x00/libipw_module.c