]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Skip frame filter config for P2P-Device
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 Feb 2021 20:26:40 +0000 (21:26 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 6 Feb 2021 09:41:09 +0000 (11:41 +0200)
There's no point in attempting to configure frame filters on
a P2P-Devices that doesn't even have a netdev (nor passes any
data traffic), that just results in error messages. Skip it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/drivers/driver_nl80211.c

index 919c6128d8f1d438500d8751a9e2586f557b46f5..a137ba293186698e317a32a8b71ebb3863ad8cf4 100644 (file)
@@ -11506,6 +11506,10 @@ static int nl80211_configure_data_frame_filters(void *priv, u32 filter_flags)
        char path[128];
        int ret;
 
+       /* P2P-Device has no netdev that can (or should) be configured here */
+       if (nl80211_get_ifmode(bss) == NL80211_IFTYPE_P2P_DEVICE)
+               return 0;
+
        wpa_printf(MSG_DEBUG, "nl80211: Data frame filter flags=0x%x",
                   filter_flags);