diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 1f49b63d8dd2..6dc7a61bc18b 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1085,11 +1085,13 @@ static void ieee80211_rx_mgmt_auth(struct ieee80211_sub_if_data *sdata, | |||
1085 | case WLAN_AUTH_OPEN: | 1085 | case WLAN_AUTH_OPEN: |
1086 | case WLAN_AUTH_LEAP: | 1086 | case WLAN_AUTH_LEAP: |
1087 | ieee80211_auth_completed(sdata); | 1087 | ieee80211_auth_completed(sdata); |
1088 | cfg80211_send_rx_auth(sdata->dev, (u8 *) mgmt, len); | ||
1088 | break; | 1089 | break; |
1089 | case WLAN_AUTH_SHARED_KEY: | 1090 | case WLAN_AUTH_SHARED_KEY: |
1090 | if (ifmgd->auth_transaction == 4) | 1091 | if (ifmgd->auth_transaction == 4) { |
1091 | ieee80211_auth_completed(sdata); | 1092 | ieee80211_auth_completed(sdata); |
1092 | else | 1093 | cfg80211_send_rx_auth(sdata->dev, (u8 *) mgmt, len); |
1094 | } else | ||
1093 | ieee80211_auth_challenge(sdata, mgmt, len); | 1095 | ieee80211_auth_challenge(sdata, mgmt, len); |
1094 | break; | 1096 | break; |
1095 | } | 1097 | } |
@@ -1125,6 +1127,7 @@ static void ieee80211_rx_mgmt_deauth(struct ieee80211_sub_if_data *sdata, | |||
1125 | 1127 | ||
1126 | ieee80211_set_disassoc(sdata, true, false, 0); | 1128 | ieee80211_set_disassoc(sdata, true, false, 0); |
1127 | ifmgd->flags &= ~IEEE80211_STA_AUTHENTICATED; | 1129 | ifmgd->flags &= ~IEEE80211_STA_AUTHENTICATED; |
1130 | cfg80211_send_rx_deauth(sdata->dev, (u8 *) mgmt, len); | ||
1128 | } | 1131 | } |
1129 | 1132 | ||
1130 | 1133 | ||
@@ -1154,6 +1157,7 @@ static void ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata, | |||
1154 | } | 1157 | } |
1155 | 1158 | ||
1156 | ieee80211_set_disassoc(sdata, false, false, reason_code); | 1159 | ieee80211_set_disassoc(sdata, false, false, reason_code); |
1160 | cfg80211_send_rx_disassoc(sdata->dev, (u8 *) mgmt, len); | ||
1157 | } | 1161 | } |
1158 | 1162 | ||
1159 | 1163 | ||
@@ -1370,6 +1374,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1370 | ieee80211_set_associated(sdata, changed); | 1374 | ieee80211_set_associated(sdata, changed); |
1371 | 1375 | ||
1372 | ieee80211_associated(sdata); | 1376 | ieee80211_associated(sdata); |
1377 | cfg80211_send_rx_assoc(sdata->dev, (u8 *) mgmt, len); | ||
1373 | } | 1378 | } |
1374 | 1379 | ||
1375 | 1380 | ||