Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158949
b: refs/heads/master
c: 7848547
h: refs/heads/master
i:
  158947: a5d9cf6
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jul 10, 2009
1 parent c98c050 commit d2d6601
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: c9cf01226e0bd1fa4f7f7024d8d53e982fad208f
refs/heads/master: 78485475618cf9f1c70dc7f15e8deafa8b6074ab
3 changes: 0 additions & 3 deletions trunk/net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,6 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
#endif
break;
case NETDEV_GOING_DOWN:
if (!wdev->ssid_len)
break;

switch (wdev->iftype) {
case NL80211_IFTYPE_ADHOC:
cfg80211_leave_ibss(rdev, dev, true);
Expand Down
4 changes: 4 additions & 0 deletions trunk/net/wireless/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ void cfg80211_clear_ibss(struct net_device *dev, bool nowext)
int cfg80211_leave_ibss(struct cfg80211_registered_device *rdev,
struct net_device *dev, bool nowext)
{
struct wireless_dev *wdev = dev->ieee80211_ptr;
int err;

if (!wdev->ssid_len)
return -ENOLINK;

err = rdev->ops->leave_ibss(&rdev->wiphy, dev);

if (err)
Expand Down

0 comments on commit d2d6601

Please sign in to comment.