diff options
author | Bernhard Schmidt <bschmidt@FreeBSD.org> | 2011-12-17 10:23:17 +0000 |
---|---|---|
committer | Bernhard Schmidt <bschmidt@FreeBSD.org> | 2011-12-17 10:23:17 +0000 |
commit | fcd9500f91d73a30f2ea8167a6d5e330e7d9e92f (patch) | |
tree | 3c0e73624fc59f5cc0b4ea521b1b967a5d4fc80d /sys/dev/an | |
parent | e9a200446070e8a84eaf1870524d4da8d325ee00 (diff) | |
download | src-fcd9500f91d73a30f2ea8167a6d5e330e7d9e92f.tar.gz src-fcd9500f91d73a30f2ea8167a6d5e330e7d9e92f.zip |
Fix some net80211 enum nits:
- ic_vap_create() uses an ieee80211_opmode argument
- ieee80211_rate2media() takes an ieee80211_phymode argument
- ieee80211_plcp2rate() takes an ieee80211_phytype argument
- cast to enum ieee80211_protmode and ieee80211_roamingmode to silence
compiler warnings
Submitted by: arundel@
Notes
Notes:
svn path=/head/; revision=228621
Diffstat (limited to 'sys/dev/an')
-rw-r--r-- | sys/dev/an/if_an.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index f52f29249ca0..aa7c918454f5 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -797,7 +797,7 @@ an_attach(struct an_softc *sc, int flags) ADD(IFM_AUTO, IFM_IEEE80211_ADHOC); for (i = 0; i < nrate; i++) { r = sc->an_caps.an_rates[i]; - mword = ieee80211_rate2media(NULL, r, IEEE80211_T_DS); + mword = ieee80211_rate2media(NULL, r, IEEE80211_MODE_AUTO); if (mword == 0) continue; printf("%s%d%sMbps", (i != 0 ? " " : ""), @@ -3299,7 +3299,7 @@ an_media_status(struct ifnet *ifp, struct ifmediareq *imr) if (sc->an_config.an_opmode == AN_OPMODE_IBSS_ADHOC) imr->ifm_active |= IFM_IEEE80211_ADHOC; imr->ifm_active |= ieee80211_rate2media(NULL, - status.an_current_tx_rate, IEEE80211_T_DS); + status.an_current_tx_rate, IEEE80211_MODE_AUTO); imr->ifm_status = IFM_AVALID; if (status.an_opmode & AN_STATUS_OPMODE_ASSOCIATED) imr->ifm_status |= IFM_ACTIVE; |