[Differential] [Request, 9 lines] D5165: [patch] dev/bwn suppressing "bwn0: unsupported rate 0" console messages

mugius.0x101.freebsd_gmail.com (Mugenga Marius) phabric-noreply at FreeBSD.org
Tue Feb 2 09:06:14 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5165.12945.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20160202/1660ffc0/attachment.bin>


More information about the freebsd-net mailing list