| From 963b2b1d3955ccf2cf4806790c9184e5dfc3e3ea Mon Sep 17 00:00:00 2001 |
| From: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| Date: Wed, 24 Jan 2024 15:04:33 +0800 |
| Subject: [PATCH 09/21] wifi: mt76: mt7915: remove redundant argument in |
| add_beacon function |
| |
| Remove redundant argument "changed". |
| |
| Signed-off-by: MeiChia Chiu <meichia.chiu@mediatek.com> |
| --- |
| mt7915/mac.c | 3 +-- |
| mt7915/main.c | 4 ++-- |
| mt7915/mcu.c | 3 +-- |
| mt7915/mt7915.h | 2 +- |
| 4 files changed, 5 insertions(+), 7 deletions(-) |
| |
| diff --git a/mt7915/mac.c b/mt7915/mac.c |
| index 0f6b806..ada3a7f 100644 |
| --- a/mt7915/mac.c |
| +++ b/mt7915/mac.c |
| @@ -1285,8 +1285,7 @@ mt7915_update_vif_beacon(void *priv, u8 *mac, struct ieee80211_vif *vif) |
| case NL80211_IFTYPE_MESH_POINT: |
| case NL80211_IFTYPE_ADHOC: |
| case NL80211_IFTYPE_AP: |
| - mt7915_mcu_add_beacon(hw, vif, vif->bss_conf.enable_beacon, |
| - BSS_CHANGED_BEACON_ENABLED); |
| + mt7915_mcu_add_beacon(hw, vif, vif->bss_conf.enable_beacon); |
| break; |
| default: |
| break; |
| diff --git a/mt7915/main.c b/mt7915/main.c |
| index 5d31f5a..9eeca39 100644 |
| --- a/mt7915/main.c |
| +++ b/mt7915/main.c |
| @@ -659,7 +659,7 @@ static void mt7915_bss_info_changed(struct ieee80211_hw *hw, |
| |
| if (changed & (BSS_CHANGED_BEACON | |
| BSS_CHANGED_BEACON_ENABLED)) |
| - mt7915_mcu_add_beacon(hw, vif, info->enable_beacon, changed); |
| + mt7915_mcu_add_beacon(hw, vif, info->enable_beacon); |
| |
| if (changed & (BSS_CHANGED_UNSOL_BCAST_PROBE_RESP | |
| BSS_CHANGED_FILS_DISCOVERY)) |
| @@ -732,7 +732,7 @@ mt7915_channel_switch_beacon(struct ieee80211_hw *hw, |
| struct mt7915_dev *dev = mt7915_hw_dev(hw); |
| |
| mutex_lock(&dev->mt76.mutex); |
| - mt7915_mcu_add_beacon(hw, vif, true, BSS_CHANGED_BEACON); |
| + mt7915_mcu_add_beacon(hw, vif, true); |
| mutex_unlock(&dev->mt76.mutex); |
| } |
| |
| diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
| index 6e9970c..84ffe07 100644 |
| --- a/mt7915/mcu.c |
| +++ b/mt7915/mcu.c |
| @@ -1970,8 +1970,7 @@ mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif, |
| MCU_EXT_CMD(BSS_INFO_UPDATE), true); |
| } |
| |
| -int mt7915_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| - int en, u32 changed) |
| +int mt7915_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int en) |
| { |
| struct mt7915_dev *dev = mt7915_hw_dev(hw); |
| struct mt7915_phy *phy = mt7915_hw_phy(hw); |
| diff --git a/mt7915/mt7915.h b/mt7915/mt7915.h |
| index 5cd2b33..e1801d5 100644 |
| --- a/mt7915/mt7915.h |
| +++ b/mt7915/mt7915.h |
| @@ -461,7 +461,7 @@ int mt7915_mcu_update_bss_color(struct mt7915_dev *dev, struct ieee80211_vif *vi |
| int mt7915_mcu_add_inband_discov(struct mt7915_dev *dev, struct ieee80211_vif *vif, |
| u32 changed); |
| int mt7915_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
| - int enable, u32 changed); |
| + int enable); |
| int mt7915_mcu_add_obss_spr(struct mt7915_phy *phy, struct ieee80211_vif *vif, |
| struct ieee80211_he_obss_pd *he_obss_pd); |
| int mt7915_mcu_add_rate_ctrl(struct mt7915_dev *dev, struct ieee80211_vif *vif, |
| -- |
| 2.18.0 |
| |