diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-04 13:29:05 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-04 13:29:05 +0000 |
commit | e503cfc39b7cbe09cd9213af842c51f2ff26ed4a (patch) | |
tree | d92ee6b0172015b3fd47ea67aa8e43904794272b /sys | |
parent | 7bc2740aa9d97b4ec12871c36f57fa5d52335204 (diff) |
Fix another case where the return value of ieee80211_chan2mode() was
used for indexing something other than ic_sup_rates. Should have been
part of earlier commit.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 55c1f655627..33326092180 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.103 2016/01/04 12:32:06 stsp Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.104 2016/01/04 13:29:04 stsp Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -230,8 +230,7 @@ ieee80211_mgmt_output(struct ifnet *ifp, struct ieee80211_node *ni, >> IEEE80211_FC0_SUBTYPE_SHIFT], ether_sprintf(ni->ni_macaddr), ieee80211_chan2ieee(ic, ni->ni_chan), - ieee80211_phymode_name[ - ieee80211_chan2mode(ic, ni->ni_chan)]); + ieee80211_phymode_name[ic->ic_curmode]); } #ifndef IEEE80211_STA_ONLY |