public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] d80211: Fix TX/RX rates
@ 2006-10-15 18:14 Ivo van Doorn
  2006-10-18 15:42 ` Jiri Benc
  0 siblings, 1 reply; 2+ messages in thread
From: Ivo van Doorn @ 2006-10-15 18:14 UTC (permalink / raw)
  To: netdev; +Cc: Jiri Benc, John Linville, geromanas

This patch correctly initializes the force_unicast_rateidx
and max_ratectrl_rateidx. This was not done previously
and caused a bug in rf80211_simple where when
rate_control_simple_get_rate() was called, the incorrect
rate was selected from the list.

Signed-off-by Modestas Vainius <geromanas@mailas•com>
Signed-off-by Ivo van Doorn <IvDoorn@gmail•com>

---

diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index 86062c9..265a1dc 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4414,6 +4414,8 @@ struct net_device *ieee80211_alloc_hw(si
         sdata->dev = mdev;
         sdata->master = mdev;
         sdata->local = local;
+	sdata->u.ap.force_unicast_rateidx = -1;
+	sdata->u.ap.max_ratectrl_rateidx = -1;
 	ieee80211_if_sdata_init(sdata);
         list_add_tail(&sdata->list, &local->sub_if_list);
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] d80211: Fix TX/RX rates
  2006-10-15 18:14 [PATCH] d80211: Fix TX/RX rates Ivo van Doorn
@ 2006-10-18 15:42 ` Jiri Benc
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Benc @ 2006-10-18 15:42 UTC (permalink / raw)
  To: Ivo van Doorn; +Cc: netdev, John Linville, geromanas

On Sun, 15 Oct 2006 20:14:07 +0200, Ivo van Doorn wrote:
> This patch correctly initializes the force_unicast_rateidx
> and max_ratectrl_rateidx. This was not done previously
> and caused a bug in rf80211_simple where when
> rate_control_simple_get_rate() was called, the incorrect
> rate was selected from the list.

Applied to my tree, thanks for the patch!

 Jiri

-- 
Jiri Benc
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-18 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15 18:14 [PATCH] d80211: Fix TX/RX rates Ivo van Doorn
2006-10-18 15:42 ` Jiri Benc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox