849e0dcea6
The geo/channel information is obtained from the EEPROM, which is read during probe. We can thus set up channel information at this time. This helps us to support ioctl commands that rely on this before the interface is brought up. Clearly matches _init_channel_map with _free_channel_map and _init_geos with _free_geos to ensure functions calling these routines can also call their cleanup routines. Fixes a few bugs: - if channel information is not available when ioctl commands are issued then we get a NULL pointer oops. Having channel information set up during probe we can deal with ioctl commands without requiring interface to be brought up. This fixes bug: http://www.bughost.org/bugzilla/show_bug.cgi?id=1552 - Fix potential problem if user triggers probe/remove/probe sequence. The value of priv->channel_count was used to determine if channel map is set up. This value was never reset when channel map was removed. - Fix memory leak: priv->modes need to be freed when device removed. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
ath5k | ||
b43 | ||
b43legacy | ||
bcm43xx | ||
hostap | ||
iwlwifi | ||
libertas | ||
prism54 | ||
rt2x00 | ||
zd1211rw | ||
adm8211.c | ||
adm8211.h | ||
airo_cs.c | ||
airo.c | ||
airo.h | ||
airport.c | ||
arlan-main.c | ||
arlan-proc.c | ||
arlan.h | ||
atmel_cs.c | ||
atmel_pci.c | ||
atmel.c | ||
atmel.h | ||
hermes_rid.h | ||
hermes.c | ||
hermes.h | ||
i82586.h | ||
i82593.h | ||
ipw2100.c | ||
ipw2100.h | ||
ipw2200.c | ||
ipw2200.h | ||
Kconfig | ||
Makefile | ||
net2280.h | ||
netwave_cs.c | ||
orinoco_cs.c | ||
orinoco_nortel.c | ||
orinoco_pci.c | ||
orinoco_pci.h | ||
orinoco_plx.c | ||
orinoco_tmd.c | ||
orinoco.c | ||
orinoco.h | ||
p54.h | ||
p54common.c | ||
p54common.h | ||
p54pci.c | ||
p54pci.h | ||
p54usb.c | ||
p54usb.h | ||
ray_cs.c | ||
ray_cs.h | ||
rayctl.h | ||
rtl818x.h | ||
rtl8180_dev.c | ||
rtl8180_grf5101.c | ||
rtl8180_grf5101.h | ||
rtl8180_max2820.c | ||
rtl8180_max2820.h | ||
rtl8180_rtl8225.c | ||
rtl8180_rtl8225.h | ||
rtl8180_sa2400.c | ||
rtl8180_sa2400.h | ||
rtl8180.h | ||
rtl8187_dev.c | ||
rtl8187_rtl8225.c | ||
rtl8187_rtl8225.h | ||
rtl8187.h | ||
spectrum_cs.c | ||
strip.c | ||
wavelan_cs.c | ||
wavelan_cs.h | ||
wavelan_cs.p.h | ||
wavelan.c | ||
wavelan.h | ||
wavelan.p.h | ||
wl3501_cs.c | ||
wl3501.h | ||
zd1201.c | ||
zd1201.h |