diff options
| author | Johannes Berg <[email protected]> | 2024-10-28 11:54:47 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-11-07 13:42:28 +0000 |
| commit | 5b10d2014ed25ce03f428dfdd8c2e5f4dfbf1ffa (patch) | |
| tree | 468cc69ff9b318d71fddd26d70900f01b0d64243 /drivers/net/wireless/intel/iwlwifi/mvm/link.c | |
| parent | wifi: iwlwifi: mvm: clarify fw_id_to_link_sta protection (diff) | |
| download | kernel-5b10d2014ed25ce03f428dfdd8c2e5f4dfbf1ffa.tar.gz kernel-5b10d2014ed25ce03f428dfdd8c2e5f4dfbf1ffa.zip | |
wifi: iwlwifi: mvm: unify link info initialization
Move the link info initialization to a common function so
that it can be modified more easily later.
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20241028135215.ab963cc90e56.Ice5cf66dec8351f8e94ca4c5b3a27e9311d0c20a@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/link.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/link.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/link.c b/drivers/net/wireless/intel/iwlwifi/mvm/link.c index 628baf67b208..492e0da553ab 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/link.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/link.c @@ -1167,3 +1167,14 @@ void iwl_mvm_unblock_esr(struct iwl_mvm *mvm, struct ieee80211_vif *vif, if (!mvmvif->esr_disable_reason) iwl_mvm_esr_unblocked(mvm, vif); } + +void iwl_mvm_init_link(struct iwl_mvm_vif_link_info *link) +{ + link->bcast_sta.sta_id = IWL_MVM_INVALID_STA; + link->mcast_sta.sta_id = IWL_MVM_INVALID_STA; + link->ap_sta_id = IWL_MVM_INVALID_STA; + + for (int r = 0; r < NUM_IWL_MVM_SMPS_REQ; r++) + link->smps_requests[r] = + IEEE80211_SMPS_AUTOMATIC; +} |
