android_kernel_xiaomi_sm8350/drivers/net/wireless
Reinette Chatre 849e0dcea6 iwlwifi: initialize geo/channel information during probe
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>
2008-01-31 19:26:41 -08:00
..
ath5k ath5k: debug level improvements 2008-01-31 19:26:35 -08:00
b43 b43: Fix rfkill allocation leakage in error paths 2008-01-31 19:26:35 -08:00
b43legacy b43legacy: fix MAC control and microcode init 2008-01-31 19:26:37 -08:00
bcm43xx bcm43xx annotations 2008-01-28 15:09:08 -08:00
hostap hostap_cs: don't match revisions in presense of the MAC chip name 2008-01-28 15:09:33 -08:00
iwlwifi iwlwifi: initialize geo/channel information during probe 2008-01-31 19:26:41 -08:00
libertas libertas: pepper main with debug statement 2008-01-28 15:10:07 -08:00
prism54 prism54: remove questionable down_interruptible usage 2008-01-28 15:09:12 -08:00
rt2x00 rt61pci: fix-up merge damage 2008-01-31 19:26:33 -08:00
zd1211rw mac80211: add unified BSS configuration 2008-01-28 15:09:43 -08:00
adm8211.c mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
adm8211.h
airo_cs.c
airo.c airo: last of endianness annotations 2008-01-28 15:09:05 -08:00
airo.h
airport.c
arlan-main.c
arlan-proc.c
arlan.h
atmel_cs.c
atmel_pci.c
atmel.c misc wireless annotations 2008-01-28 15:09:11 -08:00
atmel.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c ipw2100 annotations and fixes 2008-01-28 15:08:54 -08:00
ipw2100.h
ipw2200.c ipw2200: do not byteswap struct ipw_associate 2008-01-28 15:09:10 -08:00
ipw2200.h ipw2200: do not byteswap struct ipw_associate 2008-01-28 15:09:10 -08:00
Kconfig Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
Makefile Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
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 mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
p54common.h
p54pci.c p54pci: endianness annotations and fixes 2008-01-28 15:09:07 -08:00
p54pci.h p54pci: endianness annotations and fixes 2008-01-28 15:09:07 -08:00
p54usb.c
p54usb.h
ray_cs.c misc wireless annotations 2008-01-28 15:09:11 -08:00
ray_cs.h
rayctl.h
rtl818x.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_dev.c rtl8180_dev.c: add support for 1799:700f 2008-01-31 19:26:39 -08:00
rtl8180_grf5101.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_grf5101.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_max2820.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_max2820.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_rtl8225.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_sa2400.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180_sa2400.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8180.h mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
rtl8187_dev.c mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
rtl8187_rtl8225.c Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8187_rtl8225.h Add rtl8180 wireless driver 2008-01-28 15:09:35 -08:00
rtl8187.h mac80211: dont use interface indices in drivers 2008-01-28 15:09:36 -08:00
spectrum_cs.c
strip.c
wavelan_cs.c WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wavelan_cs.h
wavelan_cs.p.h WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wavelan.c WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wavelan.h
wavelan.p.h WAVELAN - compile-time check for struct sizes 2008-01-28 15:09:50 -08:00
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h