mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
wifi: mac80211: inform the low level if drv_stop() is a suspend
This will allow the low level driver to take different actions for different flows. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20240618192529.739036208b6e.Ie18a2fe8e02bf2717549d39420b350cfdaf3d317@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
5036eaffed
commit
1decf05d0f
@@ -1550,7 +1550,7 @@ fail:
|
||||
return retval;
|
||||
}
|
||||
|
||||
static void adm8211_stop(struct ieee80211_hw *dev)
|
||||
static void adm8211_stop(struct ieee80211_hw *dev, bool suspend)
|
||||
{
|
||||
struct adm8211_priv *priv = dev->priv;
|
||||
|
||||
|
||||
@@ -1061,7 +1061,7 @@ err:
|
||||
return error;
|
||||
}
|
||||
|
||||
static void ar5523_stop(struct ieee80211_hw *hw)
|
||||
static void ar5523_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ar5523 *ar = hw->priv;
|
||||
|
||||
|
||||
@@ -5363,7 +5363,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void ath10k_stop(struct ieee80211_hw *hw)
|
||||
static void ath10k_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath10k *ar = hw->priv;
|
||||
u32 opt;
|
||||
|
||||
@@ -6278,7 +6278,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void ath11k_mac_op_stop(struct ieee80211_hw *hw)
|
||||
static void ath11k_mac_op_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath11k *ar = hw->priv;
|
||||
struct htt_ppdu_stats_info *ppdu_stats, *tmp;
|
||||
|
||||
@@ -6112,7 +6112,7 @@ static void ath12k_mac_stop(struct ath12k *ar)
|
||||
atomic_set(&ar->num_pending_mgmt_tx, 0);
|
||||
}
|
||||
|
||||
static void ath12k_mac_op_stop(struct ieee80211_hw *hw)
|
||||
static void ath12k_mac_op_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath12k_hw *ah = ath12k_hw_to_ah(hw);
|
||||
struct ath12k *ar;
|
||||
|
||||
@@ -2847,7 +2847,7 @@ static void ath5k_stop_tasklets(struct ath5k_hw *ah)
|
||||
* if another thread does a system call and the thread doing the
|
||||
* stop is preempted).
|
||||
*/
|
||||
void ath5k_stop(struct ieee80211_hw *hw)
|
||||
void ath5k_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath5k_hw *ah = hw->priv;
|
||||
int ret;
|
||||
|
||||
@@ -92,7 +92,7 @@ void ath5k_vif_iter(void *data, u8 *mac, struct ieee80211_vif *vif);
|
||||
bool ath5k_any_vif_assoc(struct ath5k_hw *ah);
|
||||
|
||||
int ath5k_start(struct ieee80211_hw *hw);
|
||||
void ath5k_stop(struct ieee80211_hw *hw);
|
||||
void ath5k_stop(struct ieee80211_hw *hw, bool suspend);
|
||||
|
||||
void ath5k_beacon_update_timers(struct ath5k_hw *ah, u64 bc_tsf);
|
||||
int ath5k_beacon_update(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
|
||||
|
||||
@@ -973,7 +973,7 @@ static int ath9k_htc_start(struct ieee80211_hw *hw)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void ath9k_htc_stop(struct ieee80211_hw *hw)
|
||||
static void ath9k_htc_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath9k_htc_priv *priv = hw->priv;
|
||||
struct ath_hw *ah = priv->ah;
|
||||
|
||||
@@ -895,7 +895,7 @@ static void ath9k_pending_key_del(struct ath_softc *sc, u8 keyix)
|
||||
ath_key_delete(common, keyix);
|
||||
}
|
||||
|
||||
static void ath9k_stop(struct ieee80211_hw *hw)
|
||||
static void ath9k_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ath_softc *sc = hw->priv;
|
||||
struct ath_hw *ah = sc->sc_ah;
|
||||
|
||||
@@ -439,7 +439,7 @@ static void carl9170_cancel_worker(struct ar9170 *ar)
|
||||
cancel_work_sync(&ar->ampdu_work);
|
||||
}
|
||||
|
||||
static void carl9170_op_stop(struct ieee80211_hw *hw)
|
||||
static void carl9170_op_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct ar9170 *ar = hw->priv;
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ out_err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void wcn36xx_stop(struct ieee80211_hw *hw)
|
||||
static void wcn36xx_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct wcn36xx *wcn = hw->priv;
|
||||
|
||||
|
||||
@@ -1850,7 +1850,7 @@ error:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void at76_mac80211_stop(struct ieee80211_hw *hw)
|
||||
static void at76_mac80211_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct at76_priv *priv = hw->priv;
|
||||
|
||||
|
||||
@@ -5078,7 +5078,7 @@ static int b43_op_start(struct ieee80211_hw *hw)
|
||||
return err;
|
||||
}
|
||||
|
||||
static void b43_op_stop(struct ieee80211_hw *hw)
|
||||
static void b43_op_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct b43_wl *wl = hw_to_b43_wl(hw);
|
||||
struct b43_wldev *dev = wl->current_dev;
|
||||
|
||||
@@ -3485,7 +3485,7 @@ out_mutex_unlock:
|
||||
return err;
|
||||
}
|
||||
|
||||
static void b43legacy_op_stop(struct ieee80211_hw *hw)
|
||||
static void b43legacy_op_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw);
|
||||
struct b43legacy_wldev *dev = wl->current_dev;
|
||||
|
||||
@@ -457,7 +457,7 @@ static int brcms_ops_start(struct ieee80211_hw *hw)
|
||||
return err;
|
||||
}
|
||||
|
||||
static void brcms_ops_stop(struct ieee80211_hw *hw)
|
||||
static void brcms_ops_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct brcms_info *wl = hw->priv;
|
||||
int status;
|
||||
|
||||
@@ -2813,7 +2813,7 @@ out_release_irq:
|
||||
}
|
||||
|
||||
static void
|
||||
il3945_mac_stop(struct ieee80211_hw *hw)
|
||||
il3945_mac_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct il_priv *il = hw->priv;
|
||||
|
||||
|
||||
@@ -5820,7 +5820,7 @@ out:
|
||||
}
|
||||
|
||||
void
|
||||
il4965_mac_stop(struct ieee80211_hw *hw)
|
||||
il4965_mac_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct il_priv *il = hw->priv;
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ void il4965_mac_tx(struct ieee80211_hw *hw,
|
||||
struct ieee80211_tx_control *control,
|
||||
struct sk_buff *skb);
|
||||
int il4965_mac_start(struct ieee80211_hw *hw);
|
||||
void il4965_mac_stop(struct ieee80211_hw *hw);
|
||||
void il4965_mac_stop(struct ieee80211_hw *hw, bool suspend);
|
||||
void il4965_configure_filter(struct ieee80211_hw *hw,
|
||||
unsigned int changed_flags,
|
||||
unsigned int *total_flags, u64 multicast);
|
||||
|
||||
@@ -300,7 +300,7 @@ static int iwlagn_mac_start(struct ieee80211_hw *hw)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void iwlagn_mac_stop(struct ieee80211_hw *hw)
|
||||
static void iwlagn_mac_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw);
|
||||
|
||||
|
||||
@@ -1376,7 +1376,7 @@ void __iwl_mvm_mac_stop(struct iwl_mvm *mvm)
|
||||
}
|
||||
}
|
||||
|
||||
void iwl_mvm_mac_stop(struct ieee80211_hw *hw)
|
||||
void iwl_mvm_mac_stop(struct ieee80211_hw *hw, bool suspend)
|
||||
{
|
||||
struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user