diff options
author | Jouni Malinen <jkmaline@cc.hut.fi> | 2005-07-30 23:43:19 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-07-31 00:28:02 -0400 |
commit | ebed67d2847a9d299b47eeb5d82744671ab2b198 (patch) | |
tree | 9565c6fdaa7745669ec11087e259544cc6b31d2f /drivers/net/wireless/hostap/hostap_80211_rx.c | |
parent | f3b10e1636dec053f4874d593e3de5d46da48a5f (diff) |
[PATCH] hostap: Start using net/ieee80211.h
Preparations for starting to use net/ieee80211 instead of private
IEEE 802.11 implementation. Include net/ieee80211.h and
net/ieee80211_crypt.h into files that will be needed these in the
future. Remove duplicate definitions from hostap_common.h and
rename WLAN_FC_GET_{TYPE,STYPE} macros for now sinc net/ieee80211.h
is using incompatible definitions. This will be resolved in the
future by updating Host AP to use the versions that do not shift
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_80211_rx.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_80211_rx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/hostap/hostap_80211_rx.c b/drivers/net/wireless/hostap/hostap_80211_rx.c index 026d47d9c521..a0da9b9c890c 100644 --- a/drivers/net/wireless/hostap/hostap_80211_rx.c +++ b/drivers/net/wireless/hostap/hostap_80211_rx.c | |||
@@ -21,7 +21,7 @@ void hostap_dump_rx_80211(const char *name, struct sk_buff *skb, | |||
21 | 21 | ||
22 | fc = le16_to_cpu(hdr->frame_control); | 22 | fc = le16_to_cpu(hdr->frame_control); |
23 | printk(KERN_DEBUG " FC=0x%04x (type=%d:%d)%s%s", | 23 | printk(KERN_DEBUG " FC=0x%04x (type=%d:%d)%s%s", |
24 | fc, WLAN_FC_GET_TYPE(fc), WLAN_FC_GET_STYPE(fc), | 24 | fc, HOSTAP_FC_GET_TYPE(fc), HOSTAP_FC_GET_STYPE(fc), |
25 | fc & WLAN_FC_TODS ? " [ToDS]" : "", | 25 | fc & WLAN_FC_TODS ? " [ToDS]" : "", |
26 | fc & WLAN_FC_FROMDS ? " [FromDS]" : ""); | 26 | fc & WLAN_FC_FROMDS ? " [FromDS]" : ""); |
27 | 27 | ||
@@ -224,7 +224,7 @@ prism2_frag_cache_get(local_info_t *local, struct hostap_ieee80211_hdr *hdr) | |||
224 | 224 | ||
225 | sc = le16_to_cpu(hdr->seq_ctrl); | 225 | sc = le16_to_cpu(hdr->seq_ctrl); |
226 | frag = WLAN_GET_SEQ_FRAG(sc); | 226 | frag = WLAN_GET_SEQ_FRAG(sc); |
227 | seq = WLAN_GET_SEQ_SEQ(sc); | 227 | seq = WLAN_GET_SEQ_SEQ(sc) >> 4; |
228 | 228 | ||
229 | if (frag == 0) { | 229 | if (frag == 0) { |
230 | /* Reserve enough space to fit maximum frame length */ | 230 | /* Reserve enough space to fit maximum frame length */ |
@@ -274,7 +274,7 @@ static int prism2_frag_cache_invalidate(local_info_t *local, | |||
274 | struct prism2_frag_entry *entry; | 274 | struct prism2_frag_entry *entry; |
275 | 275 | ||
276 | sc = le16_to_cpu(hdr->seq_ctrl); | 276 | sc = le16_to_cpu(hdr->seq_ctrl); |
277 | seq = WLAN_GET_SEQ_SEQ(sc); | 277 | seq = WLAN_GET_SEQ_SEQ(sc) >> 4; |
278 | 278 | ||
279 | entry = prism2_frag_cache_find(local, seq, -1, hdr->addr2, hdr->addr1); | 279 | entry = prism2_frag_cache_find(local, seq, -1, hdr->addr2, hdr->addr1); |
280 | 280 | ||
@@ -719,8 +719,8 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, | |||
719 | goto rx_dropped; | 719 | goto rx_dropped; |
720 | 720 | ||
721 | fc = le16_to_cpu(hdr->frame_control); | 721 | fc = le16_to_cpu(hdr->frame_control); |
722 | type = WLAN_FC_GET_TYPE(fc); | 722 | type = HOSTAP_FC_GET_TYPE(fc); |
723 | stype = WLAN_FC_GET_STYPE(fc); | 723 | stype = HOSTAP_FC_GET_STYPE(fc); |
724 | sc = le16_to_cpu(hdr->seq_ctrl); | 724 | sc = le16_to_cpu(hdr->seq_ctrl); |
725 | frag = WLAN_GET_SEQ_FRAG(sc); | 725 | frag = WLAN_GET_SEQ_FRAG(sc); |
726 | hdrlen = hostap_80211_get_hdrlen(fc); | 726 | hdrlen = hostap_80211_get_hdrlen(fc); |
@@ -896,7 +896,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb, | |||
896 | printk(KERN_DEBUG "%s: Rx cannot get skb from " | 896 | printk(KERN_DEBUG "%s: Rx cannot get skb from " |
897 | "fragment cache (morefrag=%d seq=%u frag=%u)\n", | 897 | "fragment cache (morefrag=%d seq=%u frag=%u)\n", |
898 | dev->name, (fc & WLAN_FC_MOREFRAG) != 0, | 898 | dev->name, (fc & WLAN_FC_MOREFRAG) != 0, |
899 | WLAN_GET_SEQ_SEQ(sc), frag); | 899 | WLAN_GET_SEQ_SEQ(sc) >> 4, frag); |
900 | goto rx_dropped; | 900 | goto rx_dropped; |
901 | } | 901 | } |
902 | 902 | ||