mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
mac80211: add p2p interface
Change-Id: Id17f68b9ccae0e216dd1892a3a841c3fe2e03acd Signed-off-by: Weiguo Hu <hwg@rock-chips.com>
This commit is contained in:
@@ -1083,6 +1083,15 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
||||
"Failed to add default virtual iface\n");
|
||||
}
|
||||
|
||||
if (local->hw.wiphy->interface_modes & (BIT(NL80211_IFTYPE_P2P_GO) |
|
||||
BIT(NL80211_IFTYPE_P2P_CLIENT)) &&
|
||||
!ieee80211_hw_check(hw, NO_AUTO_VIF)) {
|
||||
result = ieee80211_if_add(local, "p2p%d", NET_NAME_ENUM, NULL,
|
||||
NL80211_IFTYPE_STATION, NULL);
|
||||
|
||||
if (result)
|
||||
wiphy_warn(local->hw.wiphy, "Failed to add p2p iface\n");
|
||||
}
|
||||
rtnl_unlock();
|
||||
|
||||
#ifdef CONFIG_INET
|
||||
|
||||
Reference in New Issue
Block a user