Skip to content

Commit 2a9311b

Browse files
Jouni MalinenKalle Valo
authored andcommitted
ath9k_htc: Set RX filter based to allow broadcast Action frame RX
Advertise support for multicast frame registration and update the RX filter based on the recently added FIF_MCAST_ACTION to allow broadcast Action frames to be received. This is needed for Device Provisioning Protocol (DPP) use cases that use broadcast Public Action frames. Signed-off-by: Jouni Malinen <[email protected]> Reported-by: kbuild test robot <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c01c320 commit 2a9311b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

drivers/net/wireless/ath/ath9k/htc_drv_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,8 @@ static void ath9k_set_hw_capab(struct ath9k_htc_priv *priv,
780780
SET_IEEE80211_PERM_ADDR(hw, common->macaddr);
781781

782782
wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
783+
wiphy_ext_feature_set(hw->wiphy,
784+
NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS);
783785
}
784786

785787
static int ath9k_init_firmware_version(struct ath9k_htc_priv *priv)

drivers/net/wireless/ath/ath9k/htc_drv_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)
12511251
FIF_OTHER_BSS | \
12521252
FIF_BCN_PRBRESP_PROMISC | \
12531253
FIF_PROBE_REQ | \
1254+
FIF_MCAST_ACTION | \
12541255
FIF_FCSFAIL)
12551256

12561257
static void ath9k_htc_configure_filter(struct ieee80211_hw *hw,

drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,8 @@ u32 ath9k_htc_calcrxfilter(struct ath9k_htc_priv *priv)
893893
if (priv->rxfilter & FIF_PSPOLL)
894894
rfilt |= ATH9K_RX_FILTER_PSPOLL;
895895

896-
if (priv->nvifs > 1 || priv->rxfilter & FIF_OTHER_BSS)
896+
if (priv->nvifs > 1 ||
897+
priv->rxfilter & (FIF_OTHER_BSS | FIF_MCAST_ACTION))
897898
rfilt |= ATH9K_RX_FILTER_MCAST_BCAST_ALL;
898899

899900
return rfilt;

0 commit comments

Comments
 (0)