diff options
47 files changed, 1007 insertions, 1388 deletions
diff --git a/Documentation/DocBook/80211.tmpl b/Documentation/DocBook/80211.tmpl index 0f6a3edcd44b..ebe89694cf81 100644 --- a/Documentation/DocBook/80211.tmpl +++ b/Documentation/DocBook/80211.tmpl | |||
| @@ -132,9 +132,7 @@ | |||
| 132 | !Finclude/net/cfg80211.h cfg80211_send_rx_assoc | 132 | !Finclude/net/cfg80211.h cfg80211_send_rx_assoc |
| 133 | !Finclude/net/cfg80211.h cfg80211_send_assoc_timeout | 133 | !Finclude/net/cfg80211.h cfg80211_send_assoc_timeout |
| 134 | !Finclude/net/cfg80211.h cfg80211_send_deauth | 134 | !Finclude/net/cfg80211.h cfg80211_send_deauth |
| 135 | !Finclude/net/cfg80211.h __cfg80211_send_deauth | ||
| 136 | !Finclude/net/cfg80211.h cfg80211_send_disassoc | 135 | !Finclude/net/cfg80211.h cfg80211_send_disassoc |
| 137 | !Finclude/net/cfg80211.h __cfg80211_send_disassoc | ||
| 138 | !Finclude/net/cfg80211.h cfg80211_ibss_joined | 136 | !Finclude/net/cfg80211.h cfg80211_ibss_joined |
| 139 | !Finclude/net/cfg80211.h cfg80211_connect_result | 137 | !Finclude/net/cfg80211.h cfg80211_connect_result |
| 140 | !Finclude/net/cfg80211.h cfg80211_roamed | 138 | !Finclude/net/cfg80211.h cfg80211_roamed |
diff --git a/drivers/net/wireless/iwlegacy/commands.h b/drivers/net/wireless/iwlegacy/commands.h index 3b6c99400892..048421511988 100644 --- a/drivers/net/wireless/iwlegacy/commands.h +++ b/drivers/net/wireless/iwlegacy/commands.h | |||
| @@ -1348,14 +1348,6 @@ struct il_rx_mpdu_res_start { | |||
| 1348 | #define TX_CMD_SEC_KEY128 0x08 | 1348 | #define TX_CMD_SEC_KEY128 0x08 |
| 1349 | 1349 | ||
| 1350 | /* | 1350 | /* |
| 1351 | * security overhead sizes | ||
| 1352 | */ | ||
| 1353 | #define WEP_IV_LEN 4 | ||
| 1354 | #define WEP_ICV_LEN 4 | ||
| 1355 | #define CCMP_MIC_LEN 8 | ||
| 1356 | #define TKIP_ICV_LEN 4 | ||
| 1357 | |||
| 1358 | /* | ||
| 1359 | * C_TX = 0x1c (command) | 1351 | * C_TX = 0x1c (command) |
| 1360 | */ | 1352 | */ |
| 1361 | 1353 | ||
diff --git a/drivers/net/wireless/iwlwifi/dvm/commands.h b/drivers/net/wireless/iwlwifi/dvm/commands.h index 19f3ce7646ab..ebdac909f0cd 100644 --- a/drivers/net/wireless/iwlwifi/dvm/commands.h +++ b/drivers/net/wireless/iwlwifi/dvm/commands.h | |||
| @@ -1221,14 +1221,6 @@ struct iwl_rx_mpdu_res_start { | |||
| 1221 | #define TX_CMD_SEC_KEY128 0x08 | 1221 | #define TX_CMD_SEC_KEY128 0x08 |
| 1222 | 1222 | ||
| 1223 | /* | 1223 | /* |
| 1224 | * security overhead sizes | ||
| 1225 | */ | ||
| 1226 | #define WEP_IV_LEN 4 | ||
| 1227 | #define WEP_ICV_LEN 4 | ||
| 1228 | #define CCMP_MIC_LEN 8 | ||
| 1229 | #define TKIP_ICV_LEN 4 | ||
| 1230 | |||
| 1231 | /* | ||
| 1232 | * REPLY_TX = 0x1c (command) | 1224 | * REPLY_TX = 0x1c (command) |
| 1233 | */ | 1225 | */ |
| 1234 | 1226 | ||
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c index dc50020d746d..12337aac2947 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c | |||
| @@ -84,15 +84,6 @@ static const struct ieee80211_iface_limit iwl_mvm_limits[] = { | |||
| 84 | .types = BIT(NL80211_IFTYPE_STATION) | | 84 | .types = BIT(NL80211_IFTYPE_STATION) | |
| 85 | BIT(NL80211_IFTYPE_AP), | 85 | BIT(NL80211_IFTYPE_AP), |
| 86 | }, | 86 | }, |
| 87 | { | ||
| 88 | .max = 1, | ||
| 89 | .types = BIT(NL80211_IFTYPE_P2P_CLIENT) | | ||
| 90 | BIT(NL80211_IFTYPE_P2P_GO), | ||
| 91 | }, | ||
| 92 | { | ||
| 93 | .max = 1, | ||
| 94 | .types = BIT(NL80211_IFTYPE_P2P_DEVICE), | ||
| 95 | }, | ||
| 96 | }; | 87 | }; |
| 97 | 88 | ||
| 98 | static const struct ieee80211_iface_combination iwl_mvm_iface_combinations[] = { | 89 | static const struct ieee80211_iface_combination iwl_mvm_iface_combinations[] = { |
| @@ -173,10 +164,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm) | |||
| 173 | hw->chanctx_data_size = sizeof(u16); | 164 | hw->chanctx_data_size = sizeof(u16); |
| 174 | 165 | ||
| 175 | hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | | 166 | hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | |
| 176 | BIT(NL80211_IFTYPE_P2P_CLIENT) | | 167 | BIT(NL80211_IFTYPE_AP); |
| 177 | BIT(NL80211_IFTYPE_AP) | | ||
| 178 | BIT(NL80211_IFTYPE_P2P_GO) | | ||
| 179 | BIT(NL80211_IFTYPE_P2P_DEVICE); | ||
| 180 | 168 | ||
| 181 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY | | 169 | hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY | |
| 182 | WIPHY_FLAG_DISABLE_BEACON_HINTS | | 170 | WIPHY_FLAG_DISABLE_BEACON_HINTS | |
diff --git a/drivers/net/wireless/iwlwifi/pcie/tx.c b/drivers/net/wireless/iwlwifi/pcie/tx.c index bf5f8246385e..a35c6aefbc3e 100644 --- a/drivers/net/wireless/iwlwifi/pcie/tx.c +++ b/drivers/net/wireless/iwlwifi/pcie/tx.c | |||
| @@ -224,13 +224,13 @@ static void iwl_pcie_txq_update_byte_cnt_tbl(struct iwl_trans *trans, | |||
| 224 | 224 | ||
| 225 | switch (sec_ctl & TX_CMD_SEC_MSK) { | 225 | switch (sec_ctl & TX_CMD_SEC_MSK) { |
| 226 | case TX_CMD_SEC_CCM: | 226 | case TX_CMD_SEC_CCM: |
| 227 | len += CCMP_MIC_LEN; | 227 | len += IEEE80211_CCMP_MIC_LEN; |
| 228 | break; | 228 | break; |
| 229 | case TX_CMD_SEC_TKIP: | 229 | case TX_CMD_SEC_TKIP: |
| 230 | len += TKIP_ICV_LEN; | 230 | len += IEEE80211_TKIP_ICV_LEN; |
| 231 | break; | 231 | break; |
| 232 | case TX_CMD_SEC_WEP: | 232 | case TX_CMD_SEC_WEP: |
| 233 | len += WEP_IV_LEN + WEP_ICV_LEN; | 233 | len += IEEE80211_WEP_IV_LEN + IEEE80211_WEP_ICV_LEN; |
| 234 | break; | 234 | break; |
| 235 | } | 235 | } |
| 236 | 236 | ||
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index b878a32e7a98..69bbf6fdd2d3 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
| @@ -1723,11 +1723,11 @@ static void mac80211_hwsim_free(void) | |||
| 1723 | class_destroy(hwsim_class); | 1723 | class_destroy(hwsim_class); |
| 1724 | } | 1724 | } |
| 1725 | 1725 | ||
| 1726 | 1726 | static struct platform_driver mac80211_hwsim_driver = { | |
| 1727 | static struct device_driver mac80211_hwsim_driver = { | ||
