Skip to content

Commit a8cd57b

Browse files
committed
Revert "mac80211_hwsim: remove P2P_DEVICE support"
This reverts commit e3ee68b. This wasn't intended to be included here, my mistake. I accidentally merged a mac80211 fixes tree here that had this change, when it wasn't even intended to be there. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 3c15a0f commit a8cd57b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/net/wireless/mac80211_hwsim.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2169,6 +2169,7 @@ static const struct ieee80211_iface_limit hwsim_if_limits[] = {
21692169
#endif
21702170
BIT(NL80211_IFTYPE_AP) |
21712171
BIT(NL80211_IFTYPE_P2P_GO) },
2172+
{ .max = 1, .types = BIT(NL80211_IFTYPE_P2P_DEVICE) },
21722173
};
21732174

21742175
static struct ieee80211_iface_combination hwsim_if_comb = {
@@ -2294,7 +2295,8 @@ static int __init init_mac80211_hwsim(void)
22942295
BIT(NL80211_IFTYPE_P2P_CLIENT) |
22952296
BIT(NL80211_IFTYPE_P2P_GO) |
22962297
BIT(NL80211_IFTYPE_ADHOC) |
2297-
BIT(NL80211_IFTYPE_MESH_POINT);
2298+
BIT(NL80211_IFTYPE_MESH_POINT) |
2299+
BIT(NL80211_IFTYPE_P2P_DEVICE);
22982300

22992301
hw->flags = IEEE80211_HW_MFP_CAPABLE |
23002302
IEEE80211_HW_SIGNAL_DBM |

0 commit comments

Comments
 (0)