]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] libertas: advertise 11g ad-hoc rates
authorBrajesh Dave <brajeshd@marvell.com>
Mon, 20 Aug 2007 17:09:13 +0000 (13:09 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:37 +0000 (16:50 -0700)
Advertise support for 802.11g bitrates when starting adhoc
networks, not just 802.11b bitrates.

Signed-off-by: Brajesh Dave <brajeshd@marvell.com>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/join.c

index ce49d3f25613b78e859ae3178306df612679b3e6..72f81208bf250b4768a992ac666d63f37c8def2e 100644 (file)
@@ -550,8 +550,8 @@ int libertas_cmd_80211_ad_hoc_start(wlan_private * priv,
        adhs->probedelay = cpu_to_le16(CMD_SCAN_PROBE_DELAY_TIME);
 
        memset(adhs->rates, 0, sizeof(adhs->rates));
-       ratesize = min(sizeof(adhs->rates), sizeof(adhoc_rates_b));
-       memcpy(adhs->rates, adhoc_rates_b, ratesize);
+       ratesize = min(sizeof(adhs->rates), sizeof(libertas_bg_rates));
+       memcpy(adhs->rates, libertas_bg_rates, ratesize);
 
        /* Copy the ad-hoc creating rates into Current BSS state structure */
        memset(&adapter->curbssparams.rates, 0, sizeof(adapter->curbssparams.rates));