dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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
Kconfig orinoco: Add MIC on TX and check on RX 2008-08-22 19:28:07 -04:00
Makefile orinoco: Move firmware download functionality into new module 2008-08-22 19:28:04 -04:00
adm8211.c mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
adm8211.h
airo.c airo: Kill directly reference of netdev->priv 2008-10-31 19:00:22 -04:00
airo.h
airo_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
airport.c orinoco: Invoke firmware download in main driver 2008-08-22 19:28:05 -04:00
arlan-main.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
arlan-proc.c
arlan.h
atmel.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
atmel.h
atmel_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
atmel_pci.c
hermes.c orinoco: Add function to execute Hermes initialisation commands synchronously 2008-08-22 19:28:04 -04:00
hermes.h orinoco: Add MIC on TX and check on RX 2008-08-22 19:28:07 -04:00
hermes_dld.c orinoco: Extend hermes_dld routines for Agere firmware 2008-08-22 19:28:05 -04:00
hermes_dld.h orinoco: Extend hermes_dld routines for Agere firmware 2008-08-22 19:28:05 -04:00
hermes_rid.h orinoco: Add WE-18 ioctls for WPA 2008-08-22 19:28:06 -04:00
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 wireless: replace __FUNCTION__ with __func__ 2008-08-22 16:29:56 -04:00
mac80211_hwsim.c mac80211: introduce hw config change flags 2008-10-31 19:00:07 -04:00
netwave_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
orinoco.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
orinoco.h orinoco: Add MIC on TX and check on RX 2008-08-22 19:28:07 -04: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: Invoke firmware download in main driver 2008-08-22 19:28:05 -04:00
orinoco_pci.c orinoco: Invoke firmware download in main driver 2008-08-22 19:28:05 -04:00
orinoco_pci.h
orinoco_plx.c orinoco: Invoke firmware download in main driver 2008-08-22 19:28:05 -04:00
orinoco_tmd.c orinoco: Invoke firmware download in main driver 2008-08-22 19:28:05 -04:00
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.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
rtl8187.h mac80211: provide sequence numbers 2008-10-31 19:00:12 -04:00
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
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.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
wavelan.h
wavelan.p.h net: Rationalise email address: Network Specific Parts 2008-10-13 19:01:08 -07:00
wavelan_cs.c net: convert more to %pM 2008-10-27 17:47:26 -07:00
wavelan_cs.h
wavelan_cs.p.h
wl3501.h
wl3501_cs.c net: convert print_mac to %pM 2008-10-27 17:06:18 -07:00
zd1201.c
zd1201.h