Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158934
b: refs/heads/master
c: 6c230c0
h: refs/heads/master
v: v3
  • Loading branch information
Samuel Ortiz authored and John W. Linville committed Jul 10, 2009
1 parent 2f222ec commit 2d89c98
Show file tree
Hide file tree
Showing 2 changed files with 6 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: e47a5cddf893815e7da16e3226b959af785d8aaf
refs/heads/master: 6c230c02700f9d2aebe6edf9f571835c06707940
7 changes: 5 additions & 2 deletions trunk/net/wireless/wext-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,8 +1136,11 @@ int cfg80211_wext_giwrate(struct net_device *dev,
if (!rdev->ops->get_station)
return -EOPNOTSUPP;

addr = wdev->wext.connect.bssid;
if (!addr)
if (wdev->current_bss)
addr = wdev->current_bss->pub.bssid;
else if (wdev->wext.connect.bssid)
addr = wdev->wext.connect.bssid;
else
return -EOPNOTSUPP;

err = rdev->ops->get_station(&rdev->wiphy, dev, addr, &sinfo);
Expand Down

0 comments on commit 2d89c98

Please sign in to comment.