diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-05-25 13:51:13 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-05-25 13:51:13 +0000 |
commit | c8550c0278f7af3050427d3abe4a05dd6113f2f4 (patch) | |
tree | 20c52d5b70928dbf070e0479f87a9ad4dd8df9e2 /sys/dev/wpi | |
parent | ef6fa9e26d4074c432dc35f404048761812ce941 (diff) | |
download | src-c8550c0278f7af3050427d3abe4a05dd6113f2f4.tar.gz src-c8550c0278f7af3050427d3abe4a05dd6113f2f4.zip |
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.
Notes
Notes:
svn path=/head/; revision=283527
Diffstat (limited to 'sys/dev/wpi')
-rw-r--r-- | sys/dev/wpi/if_wpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index 7b438c7024b9..164331ff6968 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -452,6 +452,7 @@ wpi_attach(device_t dev) ic = ifp->if_l2com; ic->ic_ifp = ifp; + ic->ic_name = device_get_nameunit(dev); ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */ |