Skip to contentSkip to conversation

d80211: Fix TX/RX rates

PATCH Applied Ivo van Doorn 2 participants 2 messages Oct 15, 2006 – Oct 18, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: Fix TX/RX rates

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 <[email protected]> Signed-off-by Ivo van Doorn <[email protected]>

---

net/d80211/ieee80211.c +2 -0
index 86062c9..265a1dc 100644
@@ -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);
 
Applied
#1 lore raw
Quoted 5 lines · Ivo van Doorn

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

Signature · 2 lines
Jiri Benc
SUSE Labs