aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/iface.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-05-10 09:18:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-06-05 15:21:46 -0400
commit72d7872852e1734e94686012a2e9deade3457329 (patch)
treea03e04cbb654ddd44132b420e068a6e0a24d8f86 /net/mac80211/iface.c
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
mac80211: allow low-level drivers to set netdev feature bits
Low level drivers can now set certain netdev feature bits in netdev_features member of the ieee80211_hw struct. These will be propagated to every netdev created from this HW. The white-listed features currently include only ones related to HW checksumming. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r--net/mac80211/iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index d4c19a7773db..f970e0b3c4b9 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -1352,6 +1352,8 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
1352 sdata->u.mgd.use_4addr = params->use_4addr; 1352 sdata->u.mgd.use_4addr = params->use_4addr;
1353 } 1353 }
1354 1354
1355 ndev->features |= local->hw.netdev_features;
1356
1355 ret = register_netdevice(ndev); 1357 ret = register_netdevice(ndev);
1356 if (ret) 1358 if (ret)
1357 goto fail; 1359 goto fail;