]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commite6c5fc53d0f44a772398402ee8a1879818e42b4e
tree440f91d018016246c118d0165641e8332f648d65
parent63ca2d74ea4f9c7a7ac082c915609a7b224908e7
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