mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: add support for NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -419,6 +419,7 @@ mt76_phy_init(struct mt76_phy *phy, struct ieee80211_hw *hw)
|
||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
|
||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AIRTIME_FAIRNESS);
|
||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AQL);
|
||||
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS);
|
||||
|
||||
wiphy->available_antennas_tx = phy->antenna_mask;
|
||||
wiphy->available_antennas_rx = phy->antenna_mask;
|
||||
|
||||
@@ -280,6 +280,9 @@ mt7603_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags,
|
||||
MT_WF_RFCR_DROP_UNWANTED_CTL |
|
||||
MT_WF_RFCR_DROP_STBC_MULTI);
|
||||
|
||||
if (*total_flags & FIF_MCAST_ACTION)
|
||||
flags |= FIF_MCAST_ACTION | FIF_OTHER_BSS;
|
||||
|
||||
MT76_FILTER(OTHER_BSS, MT_WF_RFCR_DROP_OTHER_TIM |
|
||||
MT_WF_RFCR_DROP_A3_MAC |
|
||||
MT_WF_RFCR_DROP_A3_BSSID);
|
||||
|
||||
@@ -531,6 +531,9 @@ static void mt7615_configure_filter(struct ieee80211_hw *hw,
|
||||
if (phy->n_beacon_vif || !mt7615_firmware_offload(dev))
|
||||
phy->rxfilter &= ~MT_WF_RFCR_DROP_OTHER_BEACON;
|
||||
|
||||
if (*total_flags & FIF_MCAST_ACTION)
|
||||
flags |= FIF_MCAST_ACTION | FIF_OTHER_BSS;
|
||||
|
||||
MT76_FILTER(OTHER_BSS, MT_WF_RFCR_DROP_OTHER_TIM |
|
||||
MT_WF_RFCR_DROP_A3_MAC |
|
||||
MT_WF_RFCR_DROP_A3_BSSID);
|
||||
|
||||
@@ -538,6 +538,9 @@ static void mt7915_configure_filter(struct ieee80211_hw *hw,
|
||||
MT_WF_RFCR_DROP_UNWANTED_CTL |
|
||||
MT_WF_RFCR_DROP_STBC_MULTI);
|
||||
|
||||
if (*total_flags & FIF_MCAST_ACTION)
|
||||
flags |= FIF_MCAST_ACTION | FIF_OTHER_BSS;
|
||||
|
||||
MT76_FILTER(OTHER_BSS, MT_WF_RFCR_DROP_OTHER_TIM |
|
||||
MT_WF_RFCR_DROP_A3_MAC |
|
||||
MT_WF_RFCR_DROP_A3_BSSID);
|
||||
|
||||
@@ -628,6 +628,9 @@ static void mt7921_configure_filter(struct ieee80211_hw *hw,
|
||||
MT_WF_RFCR_DROP_UNWANTED_CTL |
|
||||
MT_WF_RFCR_DROP_STBC_MULTI);
|
||||
|
||||
if (*total_flags & FIF_MCAST_ACTION)
|
||||
flags |= FIF_MCAST_ACTION | FIF_OTHER_BSS;
|
||||
|
||||
MT76_FILTER(OTHER_BSS, MT_WF_RFCR_DROP_OTHER_TIM |
|
||||
MT_WF_RFCR_DROP_A3_MAC |
|
||||
MT_WF_RFCR_DROP_A3_BSSID);
|
||||
|
||||
Reference in New Issue
Block a user