iwmc3200wifi: cfg80211 managed mode port
This patch ports iwmc3200wifi to the cfg80211 managed mode API. Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
4fdd81f5f2
commit
9967d46aa5
@@ -503,13 +503,10 @@ static int iwm_mlme_assoc_complete(struct iwm_priv *iwm, u8 *buf,
|
||||
{
|
||||
struct iwm_umac_notif_assoc_complete *complete =
|
||||
(struct iwm_umac_notif_assoc_complete *)buf;
|
||||
union iwreq_data wrqu;
|
||||
|
||||
IWM_DBG_MLME(iwm, INFO, "Association with %pM completed, status: %d\n",
|
||||
complete->bssid, complete->status);
|
||||
|
||||
memset(&wrqu, 0, sizeof(wrqu));
|
||||
|
||||
clear_bit(IWM_STATUS_ASSOCIATING, &iwm->status);
|
||||
|
||||
switch (le32_to_cpu(complete->status)) {
|
||||
@@ -520,7 +517,10 @@ static int iwm_mlme_assoc_complete(struct iwm_priv *iwm, u8 *buf,
|
||||
|
||||
iwm_link_on(iwm);
|
||||
|
||||
memcpy(wrqu.ap_addr.sa_data, complete->bssid, ETH_ALEN);
|
||||
cfg80211_connect_result(iwm_to_ndev(iwm),
|
||||
complete->bssid,
|
||||
NULL, 0, NULL, 0,
|
||||
WLAN_STATUS_SUCCESS, GFP_KERNEL);
|
||||
break;
|
||||
case UMAC_ASSOC_COMPLETE_FAILURE:
|
||||
clear_bit(IWM_STATUS_ASSOCIATED, &iwm->status);
|
||||
@@ -528,6 +528,11 @@ static int iwm_mlme_assoc_complete(struct iwm_priv *iwm, u8 *buf,
|
||||
iwm->channel = 0;
|
||||
|
||||
iwm_link_off(iwm);
|
||||
|
||||
cfg80211_connect_result(iwm_to_ndev(iwm), complete->bssid,
|
||||
NULL, 0, NULL, 0,
|
||||
WLAN_STATUS_UNSPECIFIED_FAILURE,
|
||||
GFP_KERNEL);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -537,9 +542,6 @@ static int iwm_mlme_assoc_complete(struct iwm_priv *iwm, u8 *buf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
|
||||
wireless_send_event(iwm_to_ndev(iwm), SIOCGIWAP, &wrqu, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user