]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libertas: fix misuse of netdev_priv() and dev->ml_priv
authorKiran Divekar <dkiran@marvell.com>
Fri, 20 Feb 2009 00:32:39 +0000 (19:32 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Feb 2009 20:15:44 +0000 (15:15 -0500)
commitab65f649d38d910f48843a275f3f0596cdbf28bf
tree5e1dbf7d3af66ceae64b5f920df42f920bde6ae3
parent0c9a3aaaf30e1d1994de58c554ef97a719e20892
libertas: fix misuse of netdev_priv() and dev->ml_priv

The mesh and radiotap interfaces need to use the same private data as
the main wifi interface.  If the main wifi interface uses netdev_priv(),
but the other interfaces ->ml_priv, there's no way to figure out where
the private data actually is in the WEXT handlers and netdevice
callbacks.  So make everything use ->ml_priv.

Fixes botched netdev_priv() conversion introduced by "netdevice
libertas: Fix directly reference of netdev->priv", though admittedly
libertas' use of ->priv was somewhat "special".

Signed-off-by: Kiran Divekar <dkiran@marvell.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Tested-by: Chris Ball <cjb@laptop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/ethtool.c
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/main.c
drivers/net/wireless/libertas/persistcfg.c
drivers/net/wireless/libertas/scan.c
drivers/net/wireless/libertas/tx.c
drivers/net/wireless/libertas/wext.c