Page MenuHomeFreeBSD

[patch] dev/bwn suppressing "bwn0: unsupported rate 0" console messages
Needs ReviewPublic

Authored by mugius.0x101.freebsd_gmail.com on Feb 2 2016, 9:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 14 2024, 6:55 AM
Unknown Object (File)
Mar 14 2024, 6:55 AM
Unknown Object (File)
Feb 11 2024, 6:06 PM
Unknown Object (File)
Feb 11 2024, 3:42 PM
Unknown Object (File)
Dec 20 2023, 12:44 AM
Unknown Object (File)
Dec 19 2023, 4:27 PM
Unknown Object (File)
Dec 15 2023, 11:55 AM
Unknown Object (File)
Nov 23 2023, 5:56 PM

Details

Reviewers
avos
Group Reviewers
network
Summary

Update to PR206199

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mugius.0x101.freebsd_gmail.com retitled this revision from to [patch] dev/bwn suppressing "bwn0: unsupported rate 0" console messages.
mugius.0x101.freebsd_gmail.com updated this object.
mugius.0x101.freebsd_gmail.com edited the test plan for this revision. (Show Details)

Hi!

Actually, the code tries to find a 'next' (fallback) rate, which will be used if transmission on the current rate fails; the code will be incorrect, when HT support will be added to the driver (but currently it should 'just work').

rix is the 'rate' index in ni->ni_rates.rs_rates table; since rates are sorted, the previous (or current if 'rix' is 0) should be fine as a fallback candidate.

Depending on the outcome here, it look like bwi will need similar treatment?

Ok looks like bwi doesn't need.

I don't know too much about bwn(4).
Given we have hard coded mapping tables with a limited set of 'rates' according to bwn_hwrate2ieeerate() and bwn_ieeerate2hwrate() would it make sense to manually code a "one lower than this" table? I cannot see where we set the custom (limited) list of rates. bwn_addchannels() seems to add a lot more if I am not mistaken?

Yeah, we should have a fallback rate function in net80211.

Why? Just to make sure that you're using the previously /negotiated/ rate, all the way back down to the lowest basic rate. Eg, you may not actually be allowed to use CCK 1Mbit rate according to the AP.

the atheros rate control code does this and it .. is wrong ;(