summaryrefslogtreecommitdiffstats
path: root/sys/dev/bwi
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2015-05-25 13:51:13 +0000
committerglebius <glebius@FreeBSD.org>2015-05-25 13:51:13 +0000
commitf67a4dcfd7b755e279a3eacad335e4b19f063aab (patch)
tree20c52d5b70928dbf070e0479f87a9ad4dd8df9e2 /sys/dev/bwi
parent9f7fffcc5b3bcf5932d21d2c7a6fe6ff3586ebb7 (diff)
downloadFreeBSD-src-f67a4dcfd7b755e279a3eacad335e4b19f063aab.zip
FreeBSD-src-f67a4dcfd7b755e279a3eacad335e4b19f063aab.tar.gz
Make net80211 drivers supply their device name to the net80211 layer, so
that the latter doesn't need to go through struct ifnet to get their name. Sponsored by: Netflix Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/dev/bwi')
-rw-r--r--sys/dev/bwi/if_bwi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c
index aa5369a..c8e6f63 100644
--- a/sys/dev/bwi/if_bwi.c
+++ b/sys/dev/bwi/if_bwi.c
@@ -507,6 +507,7 @@ bwi_attach(struct bwi_softc *sc)
ieee80211_init_channels(ic, NULL, &bands);
ic->ic_ifp = ifp;
+ ic->ic_name = device_get_nameunit(dev);
ic->ic_caps = IEEE80211_C_STA |
IEEE80211_C_SHSLOT |
IEEE80211_C_SHPREAMBLE |
OpenPOWER on IntegriCloud