diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2005-08-14 22:08:44 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-14 23:07:30 -0400 |
commit | 4339d328631aa815fe2181b9164b3690ca2db4da (patch) | |
tree | 1848ffbf700ccd4e38c70e218f91dd2a7eadf018 /drivers/net/wireless/hostap/hostap_hw.c | |
parent | c0f72ca8e4f1b459b5582c1c8dcaf7e53151f069 (diff) |
[PATCH] hostap: Use ieee80211 WLAN_FC_GET_{TYPE,STYPE}
Replace temporary HOSTAP_FC_GET_{TYPE,STYPE} macros with the ieee80211
version of WLAN_FC_GET_{TYPE,STYPE}.
Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_hw.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_hw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index 03c81b824242..34037b599ebc 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -1843,7 +1843,7 @@ static int prism2_tx_80211(struct sk_buff *skb, struct net_device *dev) | |||
1843 | hdr_len = 24; | 1843 | hdr_len = 24; |
1844 | memcpy(&txdesc.frame_control, skb->data, hdr_len); | 1844 | memcpy(&txdesc.frame_control, skb->data, hdr_len); |
1845 | fc = le16_to_cpu(txdesc.frame_control); | 1845 | fc = le16_to_cpu(txdesc.frame_control); |
1846 | if (HOSTAP_FC_GET_TYPE(fc) == WLAN_FC_TYPE_DATA && | 1846 | if (WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA && |
1847 | (fc & WLAN_FC_FROMDS) && (fc & WLAN_FC_TODS) && skb->len >= 30) { | 1847 | (fc & WLAN_FC_FROMDS) && (fc & WLAN_FC_TODS) && skb->len >= 30) { |
1848 | /* Addr4 */ | 1848 | /* Addr4 */ |
1849 | memcpy(txdesc.addr4, skb->data + hdr_len, ETH_ALEN); | 1849 | memcpy(txdesc.addr4, skb->data + hdr_len, ETH_ALEN); |
@@ -2395,10 +2395,10 @@ static void prism2_txexc(local_info_t *local) | |||
2395 | PDEBUG(DEBUG_EXTRA, " retry_count=%d tx_rate=%d fc=0x%04x " | 2395 | PDEBUG(DEBUG_EXTRA, " retry_count=%d tx_rate=%d fc=0x%04x " |
2396 | "(%s%s%s::%d%s%s)\n", | 2396 | "(%s%s%s::%d%s%s)\n", |
2397 | txdesc.retry_count, txdesc.tx_rate, fc, | 2397 | txdesc.retry_count, txdesc.tx_rate, fc, |
2398 | HOSTAP_FC_GET_TYPE(fc) == WLAN_FC_TYPE_MGMT ? "Mgmt" : "", | 2398 | WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_MGMT ? "Mgmt" : "", |
2399 | HOSTAP_FC_GET_TYPE(fc) == WLAN_FC_TYPE_CTRL ? "Ctrl" : "", | 2399 | WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_CTL ? "Ctrl" : "", |
2400 | HOSTAP_FC_GET_TYPE(fc) == WLAN_FC_TYPE_DATA ? "Data" : "", | 2400 | WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA ? "Data" : "", |
2401 | HOSTAP_FC_GET_STYPE(fc), | 2401 | WLAN_FC_GET_STYPE(fc) >> 4, |
2402 | fc & WLAN_FC_TODS ? " ToDS" : "", | 2402 | fc & WLAN_FC_TODS ? " ToDS" : "", |
2403 | fc & WLAN_FC_FROMDS ? " FromDS" : ""); | 2403 | fc & WLAN_FC_FROMDS ? " FromDS" : ""); |
2404 | PDEBUG(DEBUG_EXTRA, " A1=" MACSTR " A2=" MACSTR " A3=" | 2404 | PDEBUG(DEBUG_EXTRA, " A1=" MACSTR " A2=" MACSTR " A3=" |