]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mwifiex: derive priv from net_device instead of wiphy
authorYogesh Ashok Powar <yogeshp@marvell.com>
Thu, 12 Jan 2012 04:06:12 +0000 (20:06 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:21:12 +0000 (14:21 -0500)
commitf540f9f34b35d3c8a1d4b8d47ad5f00da951bfe7
tree5510785d66c268c31b53fbfcdfd94a5f6627854d
parent9da9a3b29ba6a9a98e437f24576f13cbe259997b
mwifiex: derive priv from net_device instead of wiphy

Currently mwifiex_private pointers are derived from wiphy
structures. This will always work as long as there is only
one net_device associated with one wiphy. In scenarios where
there are multiple net_devices associated with single
wiphy, one should use net_device to derive the priv.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c