Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150293
b: refs/heads/master
c: e0d6188
h: refs/heads/master
i:
  150291: 88c8f2a
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 13, 2009
1 parent 3a99346 commit 0f443dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e0502de6fe85b66ee51647eb75bc5af3c885d712
refs/heads/master: e0d61887c2ee19bb63f6a8c0e2c149184e879501
10 changes: 8 additions & 2 deletions trunk/net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata)
struct ieee80211_channel *chan = NULL;
const u8 *bssid = NULL;
int active_ibss;
u16 capability;

active_ibss = ieee80211_sta_active_ibss(sdata);
#ifdef CONFIG_MAC80211_IBSS_DEBUG
Expand All @@ -509,6 +510,10 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata)
if (active_ibss)
return;

capability = WLAN_CAPABILITY_IBSS;
if (sdata->default_key)
capability |= WLAN_CAPABILITY_PRIVACY;

if (ifibss->fixed_bssid)
bssid = ifibss->bssid;
if (ifibss->fixed_channel)
Expand All @@ -517,8 +522,9 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata)
bssid = ifibss->bssid;
bss = (void *)cfg80211_get_bss(local->hw.wiphy, chan, bssid,
ifibss->ssid, ifibss->ssid_len,
WLAN_CAPABILITY_IBSS,
WLAN_CAPABILITY_IBSS);
capability,
WLAN_CAPABILITY_IBSS |
WLAN_CAPABILITY_PRIVACY);

#ifdef CONFIG_MAC80211_IBSS_DEBUG
if (bss)
Expand Down

0 comments on commit 0f443dd

Please sign in to comment.