Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46501
b: refs/heads/master
c: 6bbdce5
h: refs/heads/master
i:
  46499: d441c46
v: v3
  • Loading branch information
John W. Linville authored and Jeff Garzik committed Feb 5, 2007
1 parent 5bcf1fb commit f345aaa
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: ff86a543e9de35c5b17a289a58aed0be4e7b9d22
refs/heads/master: 6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0
6 changes: 6 additions & 0 deletions trunk/net/ieee80211/softmac/ieee80211softmac_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ ieee80211softmac_wx_get_rate(struct net_device *net_dev,
int err = -EINVAL;

spin_lock_irqsave(&mac->lock, flags);

if (unlikely(!mac->running)) {
err = -ENODEV;
goto out_unlock;
}

switch (mac->txrates.default_rate) {
case IEEE80211_CCK_RATE_1MB:
data->bitrate.value = 1000000;
Expand Down

0 comments on commit f345aaa

Please sign in to comment.