diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-21 03:30:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:05 -0500 |
commit | 8a9faf3cd08b91aca1502dbe18e3b5063fda2e87 (patch) | |
tree | 4588f25ca8cd11833252370c3b0c7566004de050 /drivers/net/wireless/hostap/hostap_main.c | |
parent | 3eb9b41f2474c53fe469fbe383955d5aae9e76e4 (diff) |
hostap annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 17c58e9bdad5..20d387f6658c 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -296,7 +296,7 @@ int hostap_tx_callback_unregister(local_info_t *local, u16 idx) | |||
296 | int hostap_set_word(struct net_device *dev, int rid, u16 val) | 296 | int hostap_set_word(struct net_device *dev, int rid, u16 val) |
297 | { | 297 | { |
298 | struct hostap_interface *iface; | 298 | struct hostap_interface *iface; |
299 | u16 tmp = cpu_to_le16(val); | 299 | __le16 tmp = cpu_to_le16(val); |
300 | iface = netdev_priv(dev); | 300 | iface = netdev_priv(dev); |
301 | return iface->local->func->set_rid(dev, rid, &tmp, 2); | 301 | return iface->local->func->set_rid(dev, rid, &tmp, 2); |
302 | } | 302 | } |
@@ -1095,15 +1095,15 @@ int prism2_sta_deauth(local_info_t *local, u16 reason) | |||
1095 | { | 1095 | { |
1096 | union iwreq_data wrqu; | 1096 | union iwreq_data wrqu; |
1097 | int ret; | 1097 | int ret; |
1098 | __le16 val = cpu_to_le16(reason); | ||
1098 | 1099 | ||
1099 | if (local->iw_mode != IW_MODE_INFRA || | 1100 | if (local->iw_mode != IW_MODE_INFRA || |
1100 | memcmp(local->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0 || | 1101 | memcmp(local->bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0 || |
1101 | memcmp(local->bssid, "\x44\x44\x44\x44\x44\x44", ETH_ALEN) == 0) | 1102 | memcmp(local->bssid, "\x44\x44\x44\x44\x44\x44", ETH_ALEN) == 0) |
1102 | return 0; | 1103 | return 0; |
1103 | 1104 | ||
1104 | reason = cpu_to_le16(reason); | ||
1105 | ret = prism2_sta_send_mgmt(local, local->bssid, IEEE80211_STYPE_DEAUTH, | 1105 | ret = prism2_sta_send_mgmt(local, local->bssid, IEEE80211_STYPE_DEAUTH, |
1106 | (u8 *) &reason, 2); | 1106 | (u8 *) &val, 2); |
1107 | memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN); | 1107 | memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN); |
1108 | wireless_send_event(local->dev, SIOCGIWAP, &wrqu, NULL); | 1108 | wireless_send_event(local->dev, SIOCGIWAP, &wrqu, NULL); |
1109 | return ret; | 1109 | return ret; |