aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-11-24 01:51:46 -0500
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-12-01 05:04:37 -0500
commit2d2c0e9c81511a3bc61bbda1e86cce5991f882a2 (patch)
tree22cf8f502c0e3e3372e122b74f0c367f707957d0 /drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
parent6d8e09ee77a73466282cf07b67249c4792594a97 (diff)
iwlwifi: mvm: remove IWL_UCODE_TLV_CAPA_EXTENDED_BEACON
This TLV flag is set for all the supported firmwares. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
index 0cb79bc06781..f6d86ccce6a8 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c
@@ -1304,31 +1304,22 @@ int iwl_mvm_rx_beacon_notif(struct iwl_mvm *mvm,
1304 struct iwl_device_cmd *cmd) 1304 struct iwl_device_cmd *cmd)
1305{ 1305{
1306 struct iwl_rx_packet *pkt = rxb_addr(rxb); 1306 struct iwl_rx_packet *pkt = rxb_addr(rxb);
1307 struct iwl_extended_beacon_notif *beacon = (void *)pkt->data;
1307 struct iwl_mvm_tx_resp *beacon_notify_hdr; 1308 struct iwl_mvm_tx_resp *beacon_notify_hdr;
1308 struct ieee80211_vif *csa_vif; 1309 struct ieee80211_vif *csa_vif;
1309 struct ieee80211_vif *tx_blocked_vif; 1310 struct ieee80211_vif *tx_blocked_vif;
1310 u64 tsf;
1311 u16 status; 1311 u16 status;
1312 1312
1313 lockdep_assert_held(&mvm->mutex); 1313 lockdep_assert_held(&mvm->mutex);
1314 1314
1315 if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_CAPA_EXTENDED_BEACON) { 1315 beacon_notify_hdr = &beacon->beacon_notify_hdr;
1316 struct iwl_extended_beacon_notif *beacon = (void *)pkt->data; 1316 mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2);
1317
1318 beacon_notify_hdr = &beacon->beacon_notify_hdr;
1319 tsf = le64_to_cpu(beacon->tsf);
1320 mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2);
1321 } else {
1322 struct iwl_beacon_notif *beacon = (void *)pkt->data;
1323
1324 beacon_notify_hdr = &beacon->beacon_notify_hdr;
1325 tsf = le64_to_cpu(beacon->tsf);
1326 }
1327 1317
1328 status = le16_to_cpu(beacon_notify_hdr->status.status) & TX_STATUS_MSK; 1318 status = le16_to_cpu(beacon_notify_hdr->status.status) & TX_STATUS_MSK;
1329 IWL_DEBUG_RX(mvm, 1319 IWL_DEBUG_RX(mvm,
1330 "beacon status %#x retries:%d tsf:0x%16llX gp2:0x%X rate:%d\n", 1320 "beacon status %#x retries:%d tsf:0x%16llX gp2:0x%X rate:%d\n",
1331 status, beacon_notify_hdr->failure_frame, tsf, 1321 status, beacon_notify_hdr->failure_frame,
1322 le64_to_cpu(beacon->tsf),
1332 mvm->ap_last_beacon_gp2, 1323 mvm->ap_last_beacon_gp2,
1333 le32_to_cpu(beacon_notify_hdr->initial_rate)); 1324 le32_to_cpu(beacon_notify_hdr->initial_rate));
1334 1325