Skip to contentSkip to conversation

mac80211: minor cleanup

RFC In review Mohammed Shafi Shajakhan 1 participant 2 messages Dec 27, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

RFC 1/1 mac80211: minor cleanup

From: Mohammed Shafi Shajakhan <[email protected]>

if we had set 'fixed-freq' paramter in iw ibss join command, scan request won't be intiated in this path with the state 'IEEE80211_IBSS_MLME_JOINED'

---
 net/mac80211/ibss.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/mac80211/ibss.c +1 -2
index f8a32bf..8875673 100644
@@ -642,8 +642,7 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata)
 	       "IBSS networks with same SSID (merge)\n", sdata->name);
 
 	ieee80211_request_internal_scan(sdata,
-			ifibss->ssid, ifibss->ssid_len,
-			ifibss->fixed_channel ? ifibss->channel : NULL);
+			ifibss->ssid, ifibss->ssid_len, NULL);
 }
 
 static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)
Signature · 1 line
1.7.0.4
#1 lore raw

Hi Johannes and all,

i have a doubt why we should stop scanning in the following scenario:

*we have created an IBSS network as we cannot find no other network for IBSS_JOIN_TIMEOUT and when we had used 'fixed-freq' option, why can't we still keep scanning in the fixed frequency?

*we create two networks IBSS1 and IBSS2 with 'fixed-freq' option and they are not visible to each other till they had become creators(IBSS_JOIN_TIMEOUT). i assume unless we scan in the 'fixed-freq' they won't be joining with each other as they have their own 'BSSID' which won't match when we receive each of their beacon frames. i will test this scenario to confirm. thanks in advance

thanks to Raj for his valuable inputs.

Quoted 25 lines · Mohammed Shafi Shajakhan

From: Mohammed Shafi Shajakhan<[email protected]>

if we had set 'fixed-freq' paramter in iw ibss join command, scan request won't be intiated in this path with the state 'IEEE80211_IBSS_MLME_JOINED'

---
  net/mac80211/ibss.c |    3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)
net/mac80211/ibss.c +1 -2
index f8a32bf..8875673 100644
@@ -642,8 +642,7 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata)
  	       "IBSS networks with same SSID (merge)\n", sdata->name);
 
  	ieee80211_request_internal_scan(sdata,
-			ifibss->ssid, ifibss->ssid_len,
-			ifibss->fixed_channel ? ifibss->channel : NULL);
+			ifibss->ssid, ifibss->ssid_len, NULL);
  }
 
  static void ieee80211_sta_create_ibss(struct ieee80211_sub_if_data *sdata)
Signature · 2 lines
thanks,
shafi