提交 bedd7904 编写于 作者: J Jouni Malinen 提交者: Johannes Berg

mac80211_hwsim: Advertise support for multicast RX registration

While mac80211_hwsim does not need this to configure RX filters, it is
convenient to have this enabled for testing purposes.
Signed-off-by: NJouni Malinen <jouni@codeaurora.org>
Link: https://lore.kernel.org/r/20200425155713.25687-3-jouni@codeaurora.orgSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 d530b986
...@@ -1827,6 +1827,8 @@ static void mac80211_hwsim_configure_filter(struct ieee80211_hw *hw, ...@@ -1827,6 +1827,8 @@ static void mac80211_hwsim_configure_filter(struct ieee80211_hw *hw,
data->rx_filter = 0; data->rx_filter = 0;
if (*total_flags & FIF_ALLMULTI) if (*total_flags & FIF_ALLMULTI)
data->rx_filter |= FIF_ALLMULTI; data->rx_filter |= FIF_ALLMULTI;
if (*total_flags & FIF_MCAST_ACTION)
data->rx_filter |= FIF_MCAST_ACTION;
*total_flags = data->rx_filter; *total_flags = data->rx_filter;
} }
...@@ -3060,6 +3062,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, ...@@ -3060,6 +3062,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR;
wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_VHT_IBSS); wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_VHT_IBSS);
wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_BEACON_PROTECTION); wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_BEACON_PROTECTION);
wiphy_ext_feature_set(hw->wiphy,
NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS);
hw->wiphy->interface_modes = param->iftypes; hw->wiphy->interface_modes = param->iftypes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册