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>
This commit is contained in:
parent
6d8e09ee77
commit
2d2c0e9c81
1 changed files with 5 additions and 14 deletions
|
@ -1304,31 +1304,22 @@ int iwl_mvm_rx_beacon_notif(struct iwl_mvm *mvm,
|
||||||
struct iwl_device_cmd *cmd)
|
struct iwl_device_cmd *cmd)
|
||||||
{
|
{
|
||||||
struct iwl_rx_packet *pkt = rxb_addr(rxb);
|
struct iwl_rx_packet *pkt = rxb_addr(rxb);
|
||||||
|
struct iwl_extended_beacon_notif *beacon = (void *)pkt->data;
|
||||||
struct iwl_mvm_tx_resp *beacon_notify_hdr;
|
struct iwl_mvm_tx_resp *beacon_notify_hdr;
|
||||||
struct ieee80211_vif *csa_vif;
|
struct ieee80211_vif *csa_vif;
|
||||||
struct ieee80211_vif *tx_blocked_vif;
|
struct ieee80211_vif *tx_blocked_vif;
|
||||||
u64 tsf;
|
|
||||||
u16 status;
|
u16 status;
|
||||||
|
|
||||||
lockdep_assert_held(&mvm->mutex);
|
lockdep_assert_held(&mvm->mutex);
|
||||||
|
|
||||||
if (mvm->fw->ucode_capa.api[0] & IWL_UCODE_TLV_CAPA_EXTENDED_BEACON) {
|
beacon_notify_hdr = &beacon->beacon_notify_hdr;
|
||||||
struct iwl_extended_beacon_notif *beacon = (void *)pkt->data;
|
mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2);
|
||||||
|
|
||||||
beacon_notify_hdr = &beacon->beacon_notify_hdr;
|
|
||||||
tsf = le64_to_cpu(beacon->tsf);
|
|
||||||
mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2);
|
|
||||||
} else {
|
|
||||||
struct iwl_beacon_notif *beacon = (void *)pkt->data;
|
|
||||||
|
|
||||||
beacon_notify_hdr = &beacon->beacon_notify_hdr;
|
|
||||||
tsf = le64_to_cpu(beacon->tsf);
|
|
||||||
}
|
|
||||||
|
|
||||||
status = le16_to_cpu(beacon_notify_hdr->status.status) & TX_STATUS_MSK;
|
status = le16_to_cpu(beacon_notify_hdr->status.status) & TX_STATUS_MSK;
|
||||||
IWL_DEBUG_RX(mvm,
|
IWL_DEBUG_RX(mvm,
|
||||||
"beacon status %#x retries:%d tsf:0x%16llX gp2:0x%X rate:%d\n",
|
"beacon status %#x retries:%d tsf:0x%16llX gp2:0x%X rate:%d\n",
|
||||||
status, beacon_notify_hdr->failure_frame, tsf,
|
status, beacon_notify_hdr->failure_frame,
|
||||||
|
le64_to_cpu(beacon->tsf),
|
||||||
mvm->ap_last_beacon_gp2,
|
mvm->ap_last_beacon_gp2,
|
||||||
le32_to_cpu(beacon_notify_hdr->initial_rate));
|
le32_to_cpu(beacon_notify_hdr->initial_rate));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue