]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: NAN: Register multicast action frames if possible
authorChien Wong <m@xv97.com>
Sat, 27 Apr 2024 08:19:46 +0000 (16:19 +0800)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2024 13:40:48 +0000 (16:40 +0300)
commit6ad59779c2f6d82c5325f25efea9552fa6426055
tree00723454da9ef657291d67815777f8ecf509d6fb
parentf250c34d1065dce9a8d79f1e0723b6cdc978f322
nl80211: NAN: Register multicast action frames if possible

The USD passive subscriber and solicited transmission only publisher
require receiving multicast NAN action frames in order to work.
Currently, we are not requesting to receive multicast when
registering NAN action frames. As a result, USD passive subscribe or
solicited only publish may not work.

The NL80211_ATTR_RECEIVE_MULTICAST attribute corresponds to wiphy
ext feature NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS, which
requires driver support and only a few drivers in the kernel tree
support it. Namely ath9k, ath9k_htc, ath10k and hwsim. We should
fall back to register non multicast action frames if the driver
has no support.

It was confirmed that ath9k_htc starts to work after the changes.

Note that even without requesting to receive multicast Action
frames, some drivers would still upload them. For example, rtl8192cu
and hwsim. This is why test cases like test_nan_usd_match would not
fail.

Tested-on: TP-LINK TL-WN821N v3(AR7010+AR9287, ath9k_htc)
Signed-off-by: Chien Wong <m@xv97.com>
src/drivers/driver_nl80211.c