aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c4
-rw-r--r--drivers/net/wireless/mwifiex/decl.h5
-rw-r--r--drivers/net/wireless/mwifiex/ioctl.h4
-rw-r--r--drivers/net/wireless/mwifiex/join.c4
-rw-r--r--drivers/net/wireless/mwifiex/main.h15
-rw-r--r--drivers/net/wireless/mwifiex/scan.c7
-rw-r--r--drivers/net/wireless/mwifiex/sta_event.c2
-rw-r--r--drivers/net/wireless/mwifiex/sta_ioctl.c5
8 files changed, 19 insertions, 27 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 55293a3ac317..6a91c2fa89fe 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -839,12 +839,12 @@ mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len, u8 *ssid,
839 u8 *bssid, int mode, struct ieee80211_channel *channel, 839 u8 *bssid, int mode, struct ieee80211_channel *channel,
840 struct cfg80211_connect_params *sme, bool privacy) 840 struct cfg80211_connect_params *sme, bool privacy)
841{ 841{
842 struct mwifiex_802_11_ssid req_ssid; 842 struct cfg80211_ssid req_ssid;
843 int ret, auth_type = 0; 843 int ret, auth_type = 0;
844 struct cfg80211_bss *bss = NULL; 844 struct cfg80211_bss *bss = NULL;
845 u8 is_scanning_required = 0; 845 u8 is_scanning_required = 0;
846 846
847 memset(&req_ssid, 0, sizeof(struct mwifiex_802_11_ssid)); 847 memset(&req_ssid, 0, sizeof(struct cfg80211_ssid));
848 848
849 req_ssid.ssid_len = ssid_len; 849 req_ssid.ssid_len = ssid_len;
850 if (ssid_len > IEEE80211_MAX_SSID_LEN) { 850 if (ssid_len > IEEE80211_MAX_SSID_LEN) {
diff --git a/drivers/net/wireless/mwifiex/decl.h b/drivers/net/wireless/mwifiex/decl.h
index 3735c775495c..be5fd1652e53 100644
--- a/drivers/net/wireless/mwifiex/decl.h
+++ b/drivers/net/wireless/mwifiex/decl.h
@@ -91,11 +91,6 @@ struct mwifiex_fw_image {
91 u32 fw_len; 91 u32 fw_len;
92}; 92};
93 93
94struct mwifiex_802_11_ssid {
95 u32 ssid_len;
96 u8 ssid[IEEE80211_MAX_SSID_LEN];
97};
98
99struct mwifiex_wait_queue { 94struct mwifiex_wait_queue {
100 wait_queue_head_t wait; 95 wait_queue_head_t wait;
101 int status; 96 int status;
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h
index d5d81f1fe41c..7ca4e8234f3e 100644
--- a/drivers/net/wireless/mwifiex/ioctl.h
+++ b/drivers/net/wireless/mwifiex/ioctl.h
@@ -50,7 +50,7 @@ struct mwifiex_chan_freq {
50}; 50};
51 51
52struct mwifiex_ssid_bssid { 52struct mwifiex_ssid_bssid {
53 struct mwifiex_802_11_ssid ssid; 53 struct cfg80211_ssid ssid;
54 u8 bssid[ETH_ALEN]; 54 u8 bssid[ETH_ALEN];
55}; 55};
56 56
@@ -122,7 +122,7 @@ struct mwifiex_ver_ext {
122 122
123struct mwifiex_bss_info { 123struct mwifiex_bss_info {
124 u32 bss_mode; 124 u32 bss_mode;
125 struct mwifiex_802_11_ssid ssid; 125 struct cfg80211_ssid ssid;
126 u32 bss_chan; 126 u32 bss_chan;
127 u32 region_code; 127 u32 region_code;
128 u32 media_connected; 128 u32 media_connected;
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index 5c95e4839004..bce9991612c8 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -714,7 +714,7 @@ done:
714int 714int
715mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, 715mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
716 struct host_cmd_ds_command *cmd, 716 struct host_cmd_ds_command *cmd,
717 struct mwifiex_802_11_ssid *req_ssid) 717 struct cfg80211_ssid *req_ssid)
718{ 718{
719 int rsn_ie_len = 0; 719 int rsn_ie_len = 0;
720 struct mwifiex_adapter *adapter = priv->adapter; 720 struct mwifiex_adapter *adapter = priv->adapter;
@@ -1245,7 +1245,7 @@ int mwifiex_associate(struct mwifiex_private *priv,
1245 */ 1245 */
1246int 1246int
1247mwifiex_adhoc_start(struct mwifiex_private *priv, 1247mwifiex_adhoc_start(struct mwifiex_private *priv,
1248 struct mwifiex_802_11_ssid *adhoc_ssid) 1248 struct cfg80211_ssid *adhoc_ssid)
1249{ 1249{
1250 dev_dbg(priv->adapter->dev, "info: Adhoc Channel = %d\n", 1250 dev_dbg(priv->adapter->dev, "info: Adhoc Channel = %d\n",
1251 priv->adhoc_channel); 1251 priv->adhoc_channel);
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index dddb5563398a..a0bd4ebd262a 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -244,7 +244,7 @@ struct ieee_types_generic {
244 244
245struct mwifiex_bssdescriptor { 245struct mwifiex_bssdescriptor {
246 u8 mac_address[ETH_ALEN]; 246 u8 mac_address[ETH_ALEN];
247 struct mwifiex_802_11_ssid ssid; 247 struct cfg80211_ssid ssid;
248 u32 privacy; 248 u32 privacy;
249 s32 rssi; 249 s32 rssi;
250 u32 channel; 250 u32 channel;
@@ -388,7 +388,7 @@ struct mwifiex_private {
388 s16 bcn_rssi_avg; 388 s16 bcn_rssi_avg;
389 s16 bcn_nf_avg; 389 s16 bcn_nf_avg;
390 struct mwifiex_bssdescriptor *attempted_bss_desc; 390 struct mwifiex_bssdescriptor *attempted_bss_desc;
391 struct mwifiex_802_11_ssid prev_ssid; 391 struct cfg80211_ssid prev_ssid;
392 u8 prev_bssid[ETH_ALEN]; 392 u8 prev_bssid[ETH_ALEN];
393 struct mwifiex_current_bss_params curr_bss_params; 393 struct mwifiex_current_bss_params curr_bss_params;
394 u16 beacon_period; 394 u16 beacon_period;
@@ -747,8 +747,7 @@ void mwifiex_queue_scan_cmd(struct mwifiex_private *priv,
747 struct cmd_ctrl_node *cmd_node); 747 struct cmd_ctrl_node *cmd_node);
748int mwifiex_ret_802_11_scan(struct mwifiex_private *priv, 748int mwifiex_ret_802_11_scan(struct mwifiex_private *priv,
749 struct host_cmd_ds_command *resp); 749 struct host_cmd_ds_command *resp);
750s32 mwifiex_ssid_cmp(struct mwifiex_802_11_ssid *ssid1, 750s32 mwifiex_ssid_cmp(struct cfg80211_ssid *ssid1, struct cfg80211_ssid *ssid2);
751 struct mwifiex_802_11_ssid *ssid2);
752int mwifiex_associate(struct mwifiex_private *priv, 751int mwifiex_associate(struct mwifiex_private *priv,
753 struct mwifiex_bssdescriptor *bss_desc); 752 struct mwifiex_bssdescriptor *bss_desc);
754int mwifiex_cmd_802_11_associate(struct mwifiex_private *priv, 753int mwifiex_cmd_802_11_associate(struct mwifiex_private *priv,
@@ -760,12 +759,12 @@ void mwifiex_reset_connect_state(struct mwifiex_private *priv);
760u8 mwifiex_band_to_radio_type(u8 band); 759u8 mwifiex_band_to_radio_type(u8 band);
761int mwifiex_deauthenticate(struct mwifiex_private *priv, u8 *mac); 760int mwifiex_deauthenticate(struct mwifiex_private *priv, u8 *mac);
762int mwifiex_adhoc_start(struct mwifiex_private *priv, 761int mwifiex_adhoc_start(struct mwifiex_private *priv,
763 struct mwifiex_802_11_ssid *adhoc_ssid); 762 struct cfg80211_ssid *adhoc_ssid);
764int mwifiex_adhoc_join(struct mwifiex_private *priv, 763int mwifiex_adhoc_join(struct mwifiex_private *priv,
765 struct mwifiex_bssdescriptor *bss_desc); 764 struct mwifiex_bssdescriptor *bss_desc);
766int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, 765int mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
767 struct host_cmd_ds_command *cmd, 766 struct host_cmd_ds_command *cmd,
768 struct mwifiex_802_11_ssid *req_ssid); 767 struct cfg80211_ssid *req_ssid);
769int mwifiex_cmd_802_11_ad_hoc_join(struct mwifiex_private *priv, 768int mwifiex_cmd_802_11_ad_hoc_join(struct mwifiex_private *priv,
770 struct host_cmd_ds_command *cmd, 769 struct host_cmd_ds_command *cmd,
771 struct mwifiex_bssdescriptor *bss_desc); 770 struct mwifiex_bssdescriptor *bss_desc);
@@ -898,7 +897,7 @@ int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,
898 struct net_device *dev); 897 struct net_device *dev);
899int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter); 898int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter);
900int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss, 899int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,
901 struct mwifiex_802_11_ssid *req_ssid); 900 struct cfg80211_ssid *req_ssid);
902int mwifiex_cancel_hs(struct mwifiex_private *priv, int cmd_type); 901int mwifiex_cancel_hs(struct mwifiex_private *priv, int cmd_type);
903int mwifiex_enable_hs(struct mwifiex_adapter *adapter); 902int mwifiex_enable_hs(struct mwifiex_adapter *adapter);
904int mwifiex_disable_auto_ds(struct mwifiex_private *priv); 903int mwifiex_disable_auto_ds(struct mwifiex_private *priv);
@@ -907,7 +906,7 @@ int mwifiex_get_signal_info(struct mwifiex_private *priv,
907int mwifiex_drv_get_data_rate(struct mwifiex_private *priv, 906int mwifiex_drv_get_data_rate(struct mwifiex_private *priv,
908 struct mwifiex_rate_cfg *rate); 907 struct mwifiex_rate_cfg *rate);
909int mwifiex_request_scan(struct mwifiex_private *priv, 908int mwifiex_request_scan(struct mwifiex_private *priv,
910 struct mwifiex_802_11_ssid *req_ssid); 909 struct cfg80211_ssid *req_ssid);
911int mwifiex_set_user_scan_ioctl(struct mwifiex_private *priv, 910int mwifiex_set_user_scan_ioctl(struct mwifiex_private *priv,
912 struct mwifiex_user_scan_cfg *scan_req); 911 struct mwifiex_user_scan_cfg *scan_req);
913int mwifiex_change_adhoc_chan(struct mwifiex_private *priv, int channel); 912int mwifiex_change_adhoc_chan(struct mwifiex_private *priv, int channel);
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c
index 8f10038d1b45..67422f64f9fe 100644
--- a/drivers/net/wireless/mwifiex/scan.c
+++ b/drivers/net/wireless/mwifiex/scan.c
@@ -163,8 +163,7 @@ mwifiex_is_wpa_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher)
163 * This function compares two SSIDs and checks if they match. 163 * This function compares two SSIDs and checks if they match.
164 */ 164 */
165s32 165s32
166mwifiex_ssid_cmp(struct mwifiex_802_11_ssid *ssid1, 166mwifiex_ssid_cmp(struct cfg80211_ssid *ssid1, struct cfg80211_ssid *ssid2)
167 struct mwifiex_802_11_ssid *ssid2)
168{ 167{
169 if (!ssid1 || !ssid2 || (ssid1->ssid_len != ssid2->ssid_len)) 168 if (!ssid1 || !ssid2 || (ssid1->ssid_len != ssid2->ssid_len))
170 return -1; 169 return -1;
@@ -1851,7 +1850,7 @@ mwifiex_queue_scan_cmd(struct mwifiex_private *priv,
1851 * firmware, filtered on a specific SSID. 1850 * firmware, filtered on a specific SSID.
1852 */ 1851 */
1853static int mwifiex_scan_specific_ssid(struct mwifiex_private *priv, 1852static int mwifiex_scan_specific_ssid(struct mwifiex_private *priv,
1854 struct mwifiex_802_11_ssid *req_ssid) 1853 struct cfg80211_ssid *req_ssid)
1855{ 1854{
1856 struct mwifiex_adapter *adapter = priv->adapter; 1855 struct mwifiex_adapter *adapter = priv->adapter;
1857 int ret = 0; 1856 int ret = 0;
@@ -1896,7 +1895,7 @@ static int mwifiex_scan_specific_ssid(struct mwifiex_private *priv,
1896 * scan, depending upon whether an SSID is provided or not. 1895 * scan, depending upon whether an SSID is provided or not.
1897 */ 1896 */
1898int mwifiex_request_scan(struct mwifiex_private *priv, 1897int mwifiex_request_scan(struct mwifiex_private *priv,
1899 struct mwifiex_802_11_ssid *req_ssid) 1898 struct cfg80211_ssid *req_ssid)
1900{ 1899{
1901 int ret; 1900 int ret;
1902 1901
diff --git a/drivers/net/wireless/mwifiex/sta_event.c b/drivers/net/wireless/mwifiex/sta_event.c
index d7aa21da84d0..b9b59db60454 100644
--- a/drivers/net/wireless/mwifiex/sta_event.c
+++ b/drivers/net/wireless/mwifiex/sta_event.c
@@ -101,7 +101,7 @@ mwifiex_reset_connect_state(struct mwifiex_private *priv)
101 101
102 memcpy(&priv->prev_ssid, 102 memcpy(&priv->prev_ssid,
103 &priv->curr_bss_params.bss_descriptor.ssid, 103 &priv->curr_bss_params.bss_descriptor.ssid,
104 sizeof(struct mwifiex_802_11_ssid)); 104 sizeof(struct cfg80211_ssid));
105 105
106 memcpy(priv->prev_bssid, 106 memcpy(priv->prev_bssid,
107 priv->curr_bss_params.bss_descriptor.mac_address, ETH_ALEN); 107 priv->curr_bss_params.bss_descriptor.mac_address, ETH_ALEN);
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c
index e10161f5894c..593d285111d2 100644
--- a/drivers/net/wireless/mwifiex/sta_ioctl.c
+++ b/drivers/net/wireless/mwifiex/sta_ioctl.c
@@ -192,7 +192,7 @@ int mwifiex_fill_new_bss_desc(struct mwifiex_private *priv,
192 * first. 192 * first.
193 */ 193 */
194int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss, 194int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,
195 struct mwifiex_802_11_ssid *req_ssid) 195 struct cfg80211_ssid *req_ssid)
196{ 196{
197 int ret; 197 int ret;
198 struct mwifiex_adapter *adapter = priv->adapter; 198 struct mwifiex_adapter *adapter = priv->adapter;
@@ -464,8 +464,7 @@ int mwifiex_get_bss_info(struct mwifiex_private *priv,
464 464
465 info->bss_mode = priv->bss_mode; 465 info->bss_mode = priv->bss_mode;
466 466
467 memcpy(&info->ssid, &bss_desc->ssid, 467 memcpy(&info->ssid, &bss_desc->ssid, sizeof(struct cfg80211_ssid));
468 sizeof(struct mwifiex_802_11_ssid));
469 468
470 memcpy(&info->bssid, &bss_desc->mac_address, ETH_ALEN); 469 memcpy(&info->bssid, &bss_desc->mac_address, ETH_ALEN);
471 470