Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90315
b: refs/heads/master
c: fab7d4a
h: refs/heads/master
i:
  90313: 442647f
  90311: 442d972
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 25, 2008
1 parent 0d26d80 commit efd2bb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e048c6e4fdac9be0dbcb7e0c5d518737c867ef09
refs/heads/master: fab7d4a2b1d8ce47b69a133f6f9a203b0f12636e
6 changes: 6 additions & 0 deletions trunk/net/mac80211/ieee80211_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,7 @@ static void ieee80211_rx_bss_info(struct net_device *dev,
struct sta_info *sta;
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
u64 beacon_timestamp, rx_timestamp;
struct ieee80211_channel *channel;
DECLARE_MAC_BUF(mac);
DECLARE_MAC_BUF(mac2);

Expand Down Expand Up @@ -2420,6 +2421,11 @@ static void ieee80211_rx_bss_info(struct net_device *dev,
else
freq = rx_status->freq;

channel = ieee80211_get_channel(local->hw.wiphy, freq);

if (!channel || channel->flags & IEEE80211_CHAN_DISABLED)
return;

#ifdef CONFIG_MAC80211_MESH
if (elems.mesh_config)
bss = ieee80211_rx_mesh_bss_get(dev, elems.mesh_id,
Expand Down

0 comments on commit efd2bb9

Please sign in to comment.