summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/orinoco/wext.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-09-02 12:45:44 -0700
committerDavid S. Miller <davem@davemloft.net>2010-09-02 12:45:44 -0700
commit7162f6691e9d39d8d866574687cddb3f1ec65d72 (patch)
treec511679caf5c825ede4728870c513f92f4f1616b /drivers/net/wireless/orinoco/wext.c
parent250e061e1d3e26600236a3dd9172e7f5f5916c00 (diff)
parent78ab952717b62c0ba6ca7f7a27eaa0486685e45f (diff)
downloadlwn-7162f6691e9d39d8d866574687cddb3f1ec65d72.tar.gz
lwn-7162f6691e9d39d8d866574687cddb3f1ec65d72.zip
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'drivers/net/wireless/orinoco/wext.c')
-rw-r--r--drivers/net/wireless/orinoco/wext.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c
index cf7be1eb6124..93505f93bf97 100644
--- a/drivers/net/wireless/orinoco/wext.c
+++ b/drivers/net/wireless/orinoco/wext.c
@@ -589,8 +589,15 @@ static int orinoco_ioctl_getrate(struct net_device *dev,
/* If the interface is running we try to find more about the
current mode */
- if (netif_running(dev))
- err = orinoco_hw_get_act_bitrate(priv, &bitrate);
+ if (netif_running(dev)) {
+ int act_bitrate;
+ int lerr;
+
+ /* Ignore errors if we can't get the actual bitrate */
+ lerr = orinoco_hw_get_act_bitrate(priv, &act_bitrate);
+ if (!lerr)
+ bitrate = act_bitrate;
+ }
orinoco_unlock(priv, &flags);