mugius.0x101.freebsd_gmail.com created this revision. mugius.0x101.freebsd_gmail.com added a reviewer: network. mugius.0x101.freebsd_gmail.com added a subscriber: freebsd-net-list. mugius.0x101.freebsd_gmail.com set the repository for this revision to rS FreeBSD src repository. Herald added a subscriber: imp.
REVISION SUMMARY Update to PR206199 <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206199> REPOSITORY rS FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D5165 AFFECTED FILES head/sys/dev/bwn/if_bwn.c CHANGE DETAILS diff --git a/head/sys/dev/bwn/if_bwn.c b/head/sys/dev/bwn/if_bwn.c --- a/head/sys/dev/bwn/if_bwn.c +++ b/head/sys/dev/bwn/if_bwn.c @@ -9467,7 +9467,7 @@ struct mbuf *mprot; unsigned int len; uint32_t macctl = 0; - int protdur, rts_rate, rts_rate_fb, ismcast, isshort, rix, type; + int protdur, rts_rate, rts_rate_fb, ismcast, isshort, nrates, type; uint16_t phyctl = 0; uint8_t rate, rate_fb; @@ -9489,11 +9489,12 @@ else if (tp->ucastrate != IEEE80211_FIXED_RATE_NONE) rate = rate_fb = tp->ucastrate; else { - rix = ieee80211_ratectl_rate(ni, NULL, 0); + ieee80211_ratectl_rate(ni, NULL, 0); + nrates = ni->ni_rates.rs_nrates; rate = ni->ni_txrate; - if (rix > 0) - rate_fb = ni->ni_rates.rs_rates[rix - 1] & + if (nrates > 0) + rate_fb = ni->ni_rates.rs_rates[nrates - 1] & IEEE80211_RATE_VAL; else rate_fb = rate; EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: mugius.0x101.freebsd_gmail.com, network Cc: imp, freebsd-net-list
diff --git a/head/sys/dev/bwn/if_bwn.c b/head/sys/dev/bwn/if_bwn.c --- a/head/sys/dev/bwn/if_bwn.c +++ b/head/sys/dev/bwn/if_bwn.c @@ -9467,7 +9467,7 @@ struct mbuf *mprot; unsigned int len; uint32_t macctl = 0; - int protdur, rts_rate, rts_rate_fb, ismcast, isshort, rix, type; + int protdur, rts_rate, rts_rate_fb, ismcast, isshort, nrates, type; uint16_t phyctl = 0; uint8_t rate, rate_fb; @@ -9489,11 +9489,12 @@ else if (tp->ucastrate != IEEE80211_FIXED_RATE_NONE) rate = rate_fb = tp->ucastrate; else { - rix = ieee80211_ratectl_rate(ni, NULL, 0); + ieee80211_ratectl_rate(ni, NULL, 0); + nrates = ni->ni_rates.rs_nrates; rate = ni->ni_txrate; - if (rix > 0) - rate_fb = ni->ni_rates.rs_rates[rix - 1] & + if (nrates > 0) + rate_fb = ni->ni_rates.rs_rates[nrates - 1] & IEEE80211_RATE_VAL; else rate_fb = rate;
_______________________________________________ freebsd-net@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"