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/ral/rt2860.c | |
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/ral/rt2860.c')
-rw-r--r-- | sys/dev/ral/rt2860.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c index b29a0eb60aaf..7a60db90babe 100644 --- a/sys/dev/ral/rt2860.c +++ b/sys/dev/ral/rt2860.c @@ -315,6 +315,7 @@ rt2860_attach(device_t dev, int id) IFQ_SET_READY(&ifp->if_snd); ic->ic_ifp = ifp; + ic->ic_name = device_get_nameunit(dev); ic->ic_opmode = IEEE80211_M_STA; ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ |