summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.h
diff options
context:
space:
mode:
authorAvinash Patil2012-05-09 03:30:17 +0200
committerJohn W. Linville2012-05-16 18:46:34 +0200
commit67fdf39e0b2fcfd14584e7b1e23c607450f5b96f (patch)
treec09281965d81ae765af4b08d535347b63165ee31 /drivers/net/wireless/mwifiex/main.h
parentmwifiex: multi-interface support for mwifiex (diff)
downloadkernel-qcow2-linux-67fdf39e0b2fcfd14584e7b1e23c607450f5b96f.tar.gz
kernel-qcow2-linux-67fdf39e0b2fcfd14584e7b1e23c607450f5b96f.tar.xz
kernel-qcow2-linux-67fdf39e0b2fcfd14584e7b1e23c607450f5b96f.zip
mwifiex: save adapter pointer in wiphy_priv
Since wiphy structure is per adapter we would save adapter, instead of mwifiex private pointer, in wiphy_priv. Also move country_info from mwifiex_private to mwifiex_adapter as making it part of mwifiex_adapter looks logical. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r--drivers/net/wireless/mwifiex/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 9fc22427b33f..e324e29be544 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -471,7 +471,6 @@ struct mwifiex_private {
struct cfg80211_scan_request *scan_request;
struct mwifiex_user_scan_cfg *user_scan_cfg;
u8 cfg_bssid[6];
- u8 country_code[IEEE80211_COUNTRY_STRING_LEN];
struct wps wps;
u8 scan_block;
s32 cqm_rssi_thold;
@@ -679,6 +678,7 @@ struct mwifiex_adapter {
struct cmd_ctrl_node *cmd_queued;
spinlock_t queue_lock; /* lock for tx queues */
struct completion fw_load;
+ u8 country_code[IEEE80211_COUNTRY_STRING_LEN];
};
int mwifiex_init_lock_list(struct mwifiex_adapter *adapter);