Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158842
b: refs/heads/master
c: 51cd4aa
h: refs/heads/master
v: v3
  • Loading branch information
David Kilroy authored and John W. Linville committed Jul 10, 2009
1 parent fbe9f0c commit aa34e76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 3daf097594d398b2ddd2dca6caeaa92cb9148e23
refs/heads/master: 51cd4aabd082144881644c308647ca501690b68c
3 changes: 0 additions & 3 deletions trunk/net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ int wiphy_register(struct wiphy *wiphy)
int i;
u16 ifmodes = wiphy->interface_modes;

if (WARN_ON(wiphy->max_scan_ssids < 1))
return -EINVAL;

/* sanity check ifmodes */
WARN_ON(!ifmodes);
ifmodes &= ((1 << __NL80211_IFTYPE_AFTER_LAST) - 1) & ~1;
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/wireless/wext-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ int cfg80211_wext_giwrange(struct net_device *dev,
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWAP);
IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWSCAN);

range->scan_capa |= IW_SCAN_CAPA_ESSID;
if (wdev->wiphy->max_scan_ssids > 0)
range->scan_capa |= IW_SCAN_CAPA_ESSID;

return 0;
}
Expand Down

0 comments on commit aa34e76

Please sign in to comment.