aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r--net/wireless/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index b8191cf86226..ff9615a7ee7a 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -726,6 +726,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
726 dev->ethtool_ops = &cfg80211_ethtool_ops; 726 dev->ethtool_ops = &cfg80211_ethtool_ops;
727 727
728 if ((wdev->iftype == NL80211_IFTYPE_STATION || 728 if ((wdev->iftype == NL80211_IFTYPE_STATION ||
729 wdev->iftype == NL80211_IFTYPE_P2P_CLIENT ||
729 wdev->iftype == NL80211_IFTYPE_ADHOC) && !wdev->use_4addr) 730 wdev->iftype == NL80211_IFTYPE_ADHOC) && !wdev->use_4addr)
730 dev->priv_flags |= IFF_DONT_BRIDGE; 731 dev->priv_flags |= IFF_DONT_BRIDGE;
731 break; 732 break;
@@ -734,6 +735,7 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
734 case NL80211_IFTYPE_ADHOC: 735 case NL80211_IFTYPE_ADHOC:
735 cfg80211_leave_ibss(rdev, dev, true); 736 cfg80211_leave_ibss(rdev, dev, true);
736 break; 737 break;
738 case NL80211_IFTYPE_P2P_CLIENT:
737 case NL80211_IFTYPE_STATION: 739 case NL80211_IFTYPE_STATION:
738 wdev_lock(wdev); 740 wdev_lock(wdev);
739#ifdef CONFIG_CFG80211_WEXT 741#ifdef CONFIG_CFG80211_WEXT