When a channel switch announcement (CSA) happens either through an action frame or...
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 29 Oct 2007 22:34:55 +0000 (22:34 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 29 Oct 2007 22:34:55 +0000 (22:34 +0000)
commitbe0769dcae5a6207858457472a9800aa37c09c9a
treecfc4759b896e6dded37d75868d4d359d0ff94658
parentd2fd0a8446d01dc0c4f8e8d3a090505fe894e7fe
When a channel switch announcement (CSA) happens either through an action frame or a beacon, the sampling algorithm can get back responses with a rate of zero which result in rate index lookups that fail with -1 as a return value.

We just need to ignore these, as the sample rate control algorithm will recover quickly.

Previously, after a channel switch due to radar or command line channel change, we would see lots of error messages spewed to the logs about invalid rate indexes from the sample alg.  This just squelches those messages.

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