wifi: iwlwifi: mvm: add set_hw_timestamp to mld ops
authorAvraham Stern <avraham.stern@intel.com>
Tue, 28 Mar 2023 07:59:00 +0000 (10:59 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 30 Mar 2023 10:07:55 +0000 (12:07 +0200)
In mld ops, set_hw_timestamp was not set. Fix it.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230328104949.7b24a582b763.Ieb3139d41f1a01b2b566adecd32450da1bcdd5fa@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h

index 18e7ba98daa0284a4a9b0fa8995993017e879a58..4dbc9a57746b8d6a3d6db183e453e47001b731d9 100644 (file)
@@ -5896,9 +5896,9 @@ static bool iwl_mvm_mac_can_aggregate(struct ieee80211_hw *hw,
        return iwl_mvm_can_hw_csum(skb) == iwl_mvm_can_hw_csum(head);
 }
 
-static int iwl_mvm_set_hw_timestamp(struct ieee80211_hw *hw,
-                                   struct ieee80211_vif *vif,
-                                   struct cfg80211_set_hw_timestamp *hwts)
+int iwl_mvm_set_hw_timestamp(struct ieee80211_hw *hw,
+                            struct ieee80211_vif *vif,
+                            struct cfg80211_set_hw_timestamp *hwts)
 {
        struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
        u32 protocols = 0;
index 1d2da26408e604396b15cf4d5a663a8bd9a860b1..15beed41b3051ead4c0bde3934ad43a21498b9a0 100644 (file)
@@ -798,4 +798,5 @@ const struct ieee80211_ops iwl_mvm_mld_hw_ops = {
 #ifdef CONFIG_IWLWIFI_DEBUGFS
        .sta_add_debugfs = iwl_mvm_sta_add_debugfs,
 #endif
+       .set_hw_timestamp = iwl_mvm_set_hw_timestamp,
 };
index af2059155794b5ea40f3b338bdd580bed45a93a9..9b04ae9c41ffb944ed23782e8aa0a03f9dc5d877 100644 (file)
@@ -2602,4 +2602,7 @@ bool iwl_mvm_have_links_same_channel(struct iwl_mvm_vif *vif1,
 bool iwl_mvm_vif_is_active(struct iwl_mvm_vif *mvmvif);
 int iwl_mvm_set_tx_power(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
                         s16 tx_power);
+int iwl_mvm_set_hw_timestamp(struct ieee80211_hw *hw,
+                            struct ieee80211_vif *vif,
+                            struct cfg80211_set_hw_timestamp *hwts);
 #endif /* __IWL_MVM_H__ */