]> git.baikalelectronics.ru Git - 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)
commit1e9095ec97c7d94d7eb4feda4e79e43ab40e96ce
tree5510785d66c268c31b53fbfcdfd94a5f6627854d
parent77f4b886a0d609919f271995f77b8bf80087bc8b
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