Rewrite handling of the fixed rates
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 3 Sep 2009 21:08:13 +0000 (21:08 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 3 Sep 2009 21:08:13 +0000 (21:08 +0000)
commit922778b6efc3b580175df43937d2a62869baa24b
treeaa385fc0e86e68dadcc05a911745481307a0f945
parent0c1df90920463dfc5cc321bcd97abc6a9f56a329
Rewrite handling of the fixed rates

Make srate signed, or checks for it being less than 0 don't work.
Consistently use IEEE80211_FIXED_RATE_NONE.  Fix misleading comments.

Survive the case when the fixed rate is not in the rate table.  It can
happen e.g. a CCK rate is used with an 802.11a channel, or in the STA
mode when an OFDM rate is used with 802.11b.  The driver should catch
it, but it doesn't.  In any case, it's not a reason for an oops.

Remove the debugging message if everything is fine.  In case of an
error, specify the VAP name.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4095 0192ed92-7a03-0410-a25b-9323aeb14dbd
ath_rate/amrr/amrr.c
ath_rate/minstrel/minstrel.c
ath_rate/onoe/onoe.c
ath_rate/sample/sample.c