android_kernel_xiaomi_sm8350/drivers/net/wireless
Wang Chen faf3994a9f airo: Kill directly reference of netdev->priv
We have some reasons to kill netdev->priv:
1. netdev->priv is equal to netdev_priv().
2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
   netdev_priv() is more flexible than netdev->priv.
But we cann't kill netdev->priv, because so many drivers reference to it
directly.

OK, becasue Dave S. Miller said, "every direct netdev->priv usage is a bug",
and I want to kill netdev->priv later, I decided to convert all the direct
reference of netdev->priv first.

In this driver, I don't simply use netdev_priv() to replace netdev->priv.

The reason is:
Pointer netdev->priv was changed in this driver, but it shouldn't.
Because the memory was allocated when alloc_netdev() and netdev->priv
should always point to that memory.

So I use netdev->ml_priv to replace netdev->priv.
After replacing, both ai and ai->wifidev->ml_priv point to the same memory.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-10-31 19:00:22 -04:00
..
ath5k ath5k: fix mesh point operation 2008-10-31 19:00:21 -04:00
ath9k ath9k: correct signal quality report 2008-10-31 19:00:20 -04:00
b43 mac80211: make retry limits part of hw config 2008-10-31 19:00:14 -04:00
b43legacy mac80211: make retry limits part of hw config 2008-10-31 19:00:14 -04:00
hostap pci: use pci_ioremap_bar() in drivers/net 2008-10-31 00:53:48 -04:00
iwlwifi mac80211: rewrite HT handling 2008-10-31 19:00:16 -04:00
libertas Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-10-31 00:17:34 -07:00
libertas_tf mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
p54 p54/rtl8187: fix up the seqno patch 2008-10-31 19:00:16 -04:00
prism54 net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
rt2x00 mac80211: make retry limits part of hw config 2008-10-31 19:00:14 -04:00
zd1211rw mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
adm8211.c mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
adm8211.h
airo_cs.c
airo.c airo: Kill directly reference of netdev->priv 2008-10-31 19:00:22 -04:00
airo.h
airport.c
arlan-main.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
arlan-proc.c
arlan.h
atmel_cs.c
atmel_pci.c
atmel.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
atmel.h
hermes_dld.c
hermes_dld.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
ipw2100.h
ipw2200.c pci: use pci_ioremap_bar() in drivers/net 2008-10-31 00:53:48 -04:00
ipw2200.h
Kconfig
mac80211_hwsim.c mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
Makefile
netwave_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
orinoco_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-10-16 11:26:26 -07:00
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h
orinoco_plx.c
orinoco_tmd.c
orinoco.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
orinoco.h
ray_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
ray_cs.h
rayctl.h
rndis_wlan.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
rtl818x.h
rtl8180_dev.c mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
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: add short slot handling for 8187B 2008-10-31 19:00:19 -04:00
rtl8187_rtl8225.c rtl8187: add short slot handling for 8187B 2008-10-31 19:00:19 -04:00
rtl8187_rtl8225.h
rtl8187.h mac80211: provide sequence numbers 2008-10-31 19:00:12 -04:00
spectrum_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-10-16 11:26:26 -07:00
strip.c
wavelan_cs.c net: convert more to %pM 2008-10-27 17:47:26 -07:00
wavelan_cs.h
wavelan_cs.p.h
wavelan.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
wavelan.h
wavelan.p.h
wl3501_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
wl3501.h
zd1201.c
zd1201.h