aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 7877d3b3f4cb..604149369dc9 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2406,15 +2406,15 @@ static int ieee80211_sta_join_ibss(struct net_device *dev,
2406 2406
2407 memset(&control, 0, sizeof(control)); 2407 memset(&control, 0, sizeof(control));
2408 rate_control_get_rate(dev, sband, skb, &ratesel); 2408 rate_control_get_rate(dev, sband, skb, &ratesel);
2409 if (!ratesel.rate) { 2409 if (ratesel.rate_idx < 0) {
2410 printk(KERN_DEBUG "%s: Failed to determine TX rate " 2410 printk(KERN_DEBUG "%s: Failed to determine TX rate "
2411 "for IBSS beacon\n", dev->name); 2411 "for IBSS beacon\n", dev->name);
2412 break; 2412 break;
2413 } 2413 }
2414 control.vif = &sdata->vif; 2414 control.vif = &sdata->vif;
2415 control.tx_rate = ratesel.rate; 2415 control.tx_rate_idx = ratesel.rate_idx;
2416 if (sdata->bss_conf.use_short_preamble && 2416 if (sdata->bss_conf.use_short_preamble &&
2417 ratesel.rate->flags & IEEE80211_RATE_SHORT_PREAMBLE) 2417 sband->bitrates[ratesel.rate_idx].flags & IEEE80211_RATE_SHORT_PREAMBLE)
2418 control.flags |= IEEE80211_TXCTL_SHORT_PREAMBLE; 2418 control.flags |= IEEE80211_TXCTL_SHORT_PREAMBLE;
2419 control.antenna_sel_tx = local->hw.conf.antenna_sel_tx; 2419 control.antenna_sel_tx = local->hw.conf.antenna_sel_tx;
2420 control.flags |= IEEE80211_TXCTL_NO_ACK; 2420 control.flags |= IEEE80211_TXCTL_NO_ACK;