All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] mac80211: sets basic rate set parameter for IBSS creator
@ 2010-09-28  8:29 Mohammed Shafi Shajakhan
  2010-09-28  9:02 ` Johannes Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Mohammed Shafi Shajakhan @ 2010-09-28  8:29 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, Mohammed Shafi Shajakhan

From: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>

This fix sets the basic rate set parameter for IBSS creator when the
basic rates are not explicitly specified in the user space.

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
---
 net/mac80211/ibss.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 1a3aae5..e117155 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -541,6 +541,9 @@ static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)
 		capability |= WLAN_CAPABILITY_PRIVACY;
 	else
 		sdata->drop_unencrypted = 0;
+	if (ifibss->basic_rates == 0)
+		ifibss->basic_rates = ieee80211_mandatory_rates(local,
+					local->hw.conf.channel->band);
 
 	__ieee80211_sta_join_ibss(sdata, bssid, sdata->vif.bss_conf.beacon_int,
 				  ifibss->channel, ifibss->basic_rates,
-- 
1.7.0.4


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

end of thread, other threads:[~2010-09-28 11:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28  8:29 [RFC] mac80211: sets basic rate set parameter for IBSS creator Mohammed Shafi Shajakhan
2010-09-28  9:02 ` Johannes Berg
2010-09-28  9:31   ` Mohammed Shafi
2010-09-28 10:47     ` Johannes Berg
2010-09-28 10:53       ` [PATCH] cfg80211: always set IBSS basic rates Johannes Berg
2010-09-28 11:00       ` [RFC] mac80211: sets basic rate set parameter for IBSS creator Mohammed Shafi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.