diff options
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index e2cc6e7522dd..fc5e9b508607 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -697,6 +697,10 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb, | |||
697 | #endif | 697 | #endif |
698 | if (!dev->ethtool_ops) | 698 | if (!dev->ethtool_ops) |
699 | dev->ethtool_ops = &cfg80211_ethtool_ops; | 699 | dev->ethtool_ops = &cfg80211_ethtool_ops; |
700 | |||
701 | if ((wdev->iftype == NL80211_IFTYPE_STATION || | ||
702 | wdev->iftype == NL80211_IFTYPE_ADHOC) && !wdev->use_4addr) | ||
703 | dev->priv_flags |= IFF_DONT_BRIDGE; | ||
700 | break; | 704 | break; |
701 | case NETDEV_GOING_DOWN: | 705 | case NETDEV_GOING_DOWN: |
702 | switch (wdev->iftype) { | 706 | switch (wdev->iftype) { |