]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211: rename IEEE80211_CHANCTX_CHANGE_MIN_WIDTH
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 7 Oct 2024 12:00:47 +0000 (15:00 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 14:43:08 +0000 (16:43 +0200)
The name is misleading, this actually indicates that
ieee80211_chanctx_conf::min_def was updated.
Rename it to IEEE80211_CHANCTX_CHANGE_MIN_DEF.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241007144851.726b5f12ae0c.I3bd9e594c9d2735183ec049a4c7224bd0a9599c9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
include/net/mac80211.h
net/mac80211/chan.c

index a327893c6dce4750e4e17e15209fd65876cb475f..11cd1a8fdd9e5f99e9d9b7b9f450330628ea2b08 100644 (file)
@@ -5067,7 +5067,7 @@ void iwl_mvm_change_chanctx(struct ieee80211_hw *hw,
                      (changed & ~(IEEE80211_CHANCTX_CHANGE_WIDTH |
                                   IEEE80211_CHANCTX_CHANGE_RX_CHAINS |
                                   IEEE80211_CHANCTX_CHANGE_RADAR |
-                                  IEEE80211_CHANCTX_CHANGE_MIN_WIDTH)),
+                                  IEEE80211_CHANCTX_CHANGE_MIN_DEF)),
                      "Cannot change PHY. Ref=%d, changed=0x%X\n",
                      phy_ctxt->ref, changed))
                return;
@@ -5075,7 +5075,7 @@ void iwl_mvm_change_chanctx(struct ieee80211_hw *hw,
        guard(mvm)(mvm);
 
        /* we are only changing the min_width, may be a noop */
-       if (changed == IEEE80211_CHANCTX_CHANGE_MIN_WIDTH) {
+       if (changed == IEEE80211_CHANCTX_CHANGE_MIN_DEF) {
                if (phy_ctxt->width == def->width)
                        return;
 
index 0b8df8ec5a3b0ca1864d85f5a8d09eba679de709..c42ad5a0c303bf674e86fe78c31bdf27ccabd666 100644 (file)
@@ -213,7 +213,7 @@ struct ieee80211_low_level_stats {
  * @IEEE80211_CHANCTX_CHANGE_RADAR: radar detection flag changed
  * @IEEE80211_CHANCTX_CHANGE_CHANNEL: switched to another operating channel,
  *     this is used only with channel switching with CSA
- * @IEEE80211_CHANCTX_CHANGE_MIN_WIDTH: The min required channel width changed
+ * @IEEE80211_CHANCTX_CHANGE_MIN_DEF: The min chandef changed
  * @IEEE80211_CHANCTX_CHANGE_AP: The AP channel definition changed, so (wider
  *     bandwidth) OFDMA settings need to be changed
  * @IEEE80211_CHANCTX_CHANGE_PUNCTURING: The punctured channel(s) bitmap
@@ -224,7 +224,7 @@ enum ieee80211_chanctx_change {
        IEEE80211_CHANCTX_CHANGE_RX_CHAINS      = BIT(1),
        IEEE80211_CHANCTX_CHANGE_RADAR          = BIT(2),
        IEEE80211_CHANCTX_CHANGE_CHANNEL        = BIT(3),
-       IEEE80211_CHANCTX_CHANGE_MIN_WIDTH      = BIT(4),
+       IEEE80211_CHANCTX_CHANGE_MIN_DEF        = BIT(4),
        IEEE80211_CHANCTX_CHANGE_AP             = BIT(5),
        IEEE80211_CHANCTX_CHANGE_PUNCTURING     = BIT(6),
 };
index a155e418d26b03850b723f37bbaddad425ea95a7..3f7df45b0431dfcd1af8e4248f461b0c1d2a499c 100644 (file)
@@ -409,7 +409,7 @@ _ieee80211_recalc_chanctx_min_def(struct ieee80211_local *local,
        if (!ctx->driver_present)
                return 0;
 
-       return IEEE80211_CHANCTX_CHANGE_MIN_WIDTH;
+       return IEEE80211_CHANCTX_CHANGE_MIN_DEF;
 }
 
 static void ieee80211_chan_bw_change(struct ieee80211_local *local,