diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/orinoco/hw.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/hw.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/wext.c | 4 |
3 files changed, 15 insertions, 3 deletions
diff --git a/drivers/net/wireless/orinoco/hw.c b/drivers/net/wireless/orinoco/hw.c index 3e9021c47783..5b1265426922 100644 --- a/drivers/net/wireless/orinoco/hw.c +++ b/drivers/net/wireless/orinoco/hw.c | |||
@@ -1272,3 +1272,15 @@ int orinoco_hw_disassociate(struct orinoco_private *priv, | |||
1272 | &buf); | 1272 | &buf); |
1273 | return err; | 1273 | return err; |
1274 | } | 1274 | } |
1275 | |||
1276 | int orinoco_hw_get_current_bssid(struct orinoco_private *priv, | ||
1277 | u8 *addr) | ||
1278 | { | ||
1279 | hermes_t *hw = &priv->hw; | ||
1280 | int err; | ||
1281 | |||
1282 | err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CURRENTBSSID, | ||
1283 | ETH_ALEN, NULL, addr); | ||
1284 | |||
1285 | return err; | ||
1286 | } | ||
diff --git a/drivers/net/wireless/orinoco/hw.h b/drivers/net/wireless/orinoco/hw.h index b096786a93db..8df6e8752be6 100644 --- a/drivers/net/wireless/orinoco/hw.h +++ b/drivers/net/wireless/orinoco/hw.h | |||
@@ -53,5 +53,7 @@ int orinoco_hw_trigger_scan(struct orinoco_private *priv, | |||
53 | const struct cfg80211_ssid *ssid); | 53 | const struct cfg80211_ssid *ssid); |
54 | int orinoco_hw_disassociate(struct orinoco_private *priv, | 54 | int orinoco_hw_disassociate(struct orinoco_private *priv, |
55 | u8 *addr, u16 reason_code); | 55 | u8 *addr, u16 reason_code); |
56 | int orinoco_hw_get_current_bssid(struct orinoco_private *priv, | ||
57 | u8 *addr); | ||
56 | 58 | ||
57 | #endif /* _ORINOCO_HW_H_ */ | 59 | #endif /* _ORINOCO_HW_H_ */ |
diff --git a/drivers/net/wireless/orinoco/wext.c b/drivers/net/wireless/orinoco/wext.c index f324bf919bc8..f68bbe383e0f 100644 --- a/drivers/net/wireless/orinoco/wext.c +++ b/drivers/net/wireless/orinoco/wext.c | |||
@@ -156,7 +156,6 @@ static int orinoco_ioctl_getwap(struct net_device *dev, | |||
156 | { | 156 | { |
157 | struct orinoco_private *priv = ndev_priv(dev); | 157 | struct orinoco_private *priv = ndev_priv(dev); |
158 | 158 | ||
159 | hermes_t *hw = &priv->hw; | ||
160 | int err = 0; | 159 | int err = 0; |
161 | unsigned long flags; | 160 | unsigned long flags; |
162 | 161 | ||
@@ -164,8 +163,7 @@ static int orinoco_ioctl_getwap(struct net_device *dev, | |||
164 | return -EBUSY; | 163 | return -EBUSY; |
165 | 164 | ||
166 | ap_addr->sa_family = ARPHRD_ETHER; | 165 | ap_addr->sa_family = ARPHRD_ETHER; |
167 | err = hermes_read_ltv(hw, USER_BAP, HERMES_RID_CURRENTBSSID, | 166 | err = orinoco_hw_get_current_bssid(priv, ap_addr->sa_data); |
168 | ETH_ALEN, NULL, ap_addr->sa_data); | ||
169 | 167 | ||
170 | orinoco_unlock(priv, &flags); | 168 | orinoco_unlock(priv, &flags); |
171 | 169 | ||