diff options
-rw-r--r-- | drivers/net/wireless/orinoco.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 8b93b44291d4..29cb5d81b67e 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -1112,12 +1112,14 @@ static void orinoco_send_wevents(struct net_device *dev) | |||
1112 | err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENTBSSID, | 1112 | err = hermes_read_ltv(hw, IRQ_BAP, HERMES_RID_CURRENTBSSID, |
1113 | ETH_ALEN, NULL, wrqu.ap_addr.sa_data); | 1113 | ETH_ALEN, NULL, wrqu.ap_addr.sa_data); |
1114 | if (err != 0) | 1114 | if (err != 0) |
1115 | return; | 1115 | goto out; |
1116 | 1116 | ||
1117 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; | 1117 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; |
1118 | 1118 | ||
1119 | /* Send event to user space */ | 1119 | /* Send event to user space */ |
1120 | wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); | 1120 | wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); |
1121 | |||
1122 | out: | ||
1121 | orinoco_unlock(priv, &flags); | 1123 | orinoco_unlock(priv, &flags); |
1122 | } | 1124 | } |
1123 | 1125 | ||