diff options
author | Avraham Stern <avraham.stern@intel.com> | 2019-03-15 17:39:01 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-04-26 13:02:11 +0200 |
commit | 0538395031ca5c9c3d569b1d90c4e98aa5782620 (patch) | |
tree | 89c3eca0b30bd3663453d65e5eca39696b153d1f | |
parent | 1d9373329bcbe0cfbb9af1738139292a9b10fe6a (diff) | |
download | linux-0538395031ca5c9c3d569b1d90c4e98aa5782620.tar.gz linux-0538395031ca5c9c3d569b1d90c4e98aa5782620.tar.bz2 linux-0538395031ca5c9c3d569b1d90c4e98aa5782620.zip |
mac80211_hwsim: set p2p device interface support indication
P2P device interface type was not indicated in the supported
interface types even when hwsim was configured with p2p device
support. Fix it.
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 4cc7b222859c..9df5b95c7390 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3889,6 +3889,8 @@ static int __init init_mac80211_hwsim(void) param.p2p_device = support_p2p_device; param.use_chanctx = channels > 1; param.iftypes = HWSIM_IFTYPE_SUPPORT_MASK; + if (param.p2p_device) + param.iftypes |= BIT(NL80211_IFTYPE_P2P_DEVICE); err = mac80211_hwsim_new_radio(NULL, ¶m); if (err < 0) |