Skip to content

Commit 230a167

Browse files
committed
wifi: mt76: set NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 on supported drivers
Drivers that do not generate IV/PN in software can safely rekey PTK0 Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent f4d63a8 commit 230a167

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/net/wireless/mediatek/mt76/mt7615/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ mt7615_init_wiphy(struct ieee80211_hw *hw)
396396

397397
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SET_SCAN_DWELL);
398398
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_VHT_IBSS);
399+
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CAN_REPLACE_PTK0);
399400

400401
ieee80211_hw_set(hw, SINGLE_SCAN_ON_ALL_BANDS);
401402
ieee80211_hw_set(hw, TX_STATUS_NO_AMPDU_LEN);

drivers/net/wireless/mediatek/mt76/mt7915/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ mt7915_init_wiphy(struct mt7915_phy *phy)
369369
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP);
370370
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_DISCOVERY);
371371
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT);
372+
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CAN_REPLACE_PTK0);
372373

373374
if (!is_mt7915(&dev->mt76))
374375
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_STA_TX_PWR);

drivers/net/wireless/mediatek/mt76/mt7921/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ mt7921_init_wiphy(struct ieee80211_hw *hw)
124124
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_VHT);
125125
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_HE);
126126
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT);
127+
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CAN_REPLACE_PTK0);
127128

128129
ieee80211_hw_set(hw, SINGLE_SCAN_ON_ALL_BANDS);
129130
ieee80211_hw_set(hw, HAS_RATE_CONTROL);

drivers/net/wireless/mediatek/mt76/mt7996/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ mt7996_init_wiphy(struct ieee80211_hw *hw)
182182
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP);
183183
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_FILS_DISCOVERY);
184184
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT);
185+
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CAN_REPLACE_PTK0);
185186

186187
if (!mdev->dev->of_node ||
187188
!of_property_read_bool(mdev->dev->of_node,

0 commit comments

Comments
 (0)