2011/6/6 Johannes Berg <johannes@xxxxxxxxxxxxxxxx>: > On Sat, 2011-06-04 at 19:42 +0200, Matteo Croce wrote: > >> +       case IEEE80211_RADIOTAP_RATE: { >> +           struct ieee80211_supported_band *sband = >> +               tx->local->hw.wiphy->bands[tx->channel->band]; >> +           info->control.rates[0].idx = 0; >> +           if (*iterator.this_arg) { >> +               int i; >> +               for (i = 0; i < sband->n_bitrates; i++) >> +                   if (sband->bitrates[i].bitrate == >> +                       *iterator.this_arg * 5) { >> +                       info->control.rates[0].idx = i; >> +                       break; > > I don't think you should set the index if the bitrate doesn't exist. > > Also, have you actually _tested_ this patch? I see nothing that would > cause rate control to be skipped, so rate control should always override > the data you set up here. > > johannes > > Actually I use this patch on many devices. The rate control is not an issue as this patch is intended for injecting in monitor mode -- Matteo Croce OpenWrt Developer Â_______           ________    Â__ |    |.-----.-----.-----.| Â| Â| Â|.----.| Â|_ |  -  || Â_ Â| Â-__|   || Â| Â| Â||  _||  _| |_______||  __|_____|__|__||________||__| Â|____|     Â|__| W I R E L E S S  F R E E D O M ATTITUDE ADJUSTMENT (bleeding edge) -------------- Â* 1/4 oz Vodka   ÂPour all ingredents into mixing Â* 1/4 oz Gin    Âtin with ice, strain into glass. Â* 1/4 oz Amaretto Â* 1/4 oz Triple sec Â* 1/4 oz Peach schnapps Â* 1/4 oz Sour mix Â* 1 splash Cranberry juice ----------------------------------------------------- ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ÿ«zW¬³ø¡Ü}©²ÆzÚj:+v¨þø®w¥þàÞ¨è&¢)ß«a¶Úÿûz¹ÞúÝjÿwèf