Commit 05383950 authored by Avraham Stern's avatar Avraham Stern Committed by Johannes Berg

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: default avatarAvraham Stern <avraham.stern@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 1d937332
...@@ -3889,6 +3889,8 @@ static int __init init_mac80211_hwsim(void) ...@@ -3889,6 +3889,8 @@ static int __init init_mac80211_hwsim(void)
param.p2p_device = support_p2p_device; param.p2p_device = support_p2p_device;
param.use_chanctx = channels > 1; param.use_chanctx = channels > 1;
param.iftypes = HWSIM_IFTYPE_SUPPORT_MASK; param.iftypes = HWSIM_IFTYPE_SUPPORT_MASK;
if (param.p2p_device)
param.iftypes |= BIT(NL80211_IFTYPE_P2P_DEVICE);
err = mac80211_hwsim_new_radio(NULL, &param); err = mac80211_hwsim_new_radio(NULL, &param);
if (err < 0) if (err < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment