aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap.c
diff options
context:
space:
mode:
authorJouni Malinen <jkmaline@cc.hut.fi>2005-07-30 23:43:19 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-07-31 00:28:02 -0400
commitebed67d2847a9d299b47eeb5d82744671ab2b198 (patch)
tree9565c6fdaa7745669ec11087e259544cc6b31d2f /drivers/net/wireless/hostap/hostap.c
parentf3b10e1636dec053f4874d593e3de5d46da48a5f (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.c')
-rw-r--r--drivers/net/wireless/hostap/hostap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/hostap/hostap.c b/drivers/net/wireless/hostap/hostap.c
index 182891f1dd0..75c75103f67 100644
--- a/drivers/net/wireless/hostap/hostap.c
+++ b/drivers/net/wireless/hostap/hostap.c
@@ -26,6 +26,8 @@
26#include <linux/rtnetlink.h> 26#include <linux/rtnetlink.h>
27#include <linux/wireless.h> 27#include <linux/wireless.h>
28#include <net/iw_handler.h> 28#include <net/iw_handler.h>
29#include <net/ieee80211.h>
30#include <net/ieee80211_crypt.h>
29#include <asm/uaccess.h> 31#include <asm/uaccess.h>
30 32
31#include "hostap_wlan.h" 33#include "hostap_wlan.h"
@@ -596,7 +598,7 @@ void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx)
596 fc = __le16_to_cpu(rx->frame_control); 598 fc = __le16_to_cpu(rx->frame_control);
597 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x " 599 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x "
598 "data_len=%d%s%s\n", 600 "data_len=%d%s%s\n",
599 fc, WLAN_FC_GET_TYPE(fc), WLAN_FC_GET_STYPE(fc), 601 fc, HOSTAP_FC_GET_TYPE(fc), HOSTAP_FC_GET_STYPE(fc),
600 __le16_to_cpu(rx->duration_id), __le16_to_cpu(rx->seq_ctrl), 602 __le16_to_cpu(rx->duration_id), __le16_to_cpu(rx->seq_ctrl),
601 __le16_to_cpu(rx->data_len), 603 __le16_to_cpu(rx->data_len),
602 fc & WLAN_FC_TODS ? " [ToDS]" : "", 604 fc & WLAN_FC_TODS ? " [ToDS]" : "",
@@ -625,7 +627,7 @@ void hostap_dump_tx_header(const char *name, const struct hfa384x_tx_frame *tx)
625 fc = __le16_to_cpu(tx->frame_control); 627 fc = __le16_to_cpu(tx->frame_control);
626 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x " 628 printk(KERN_DEBUG " FC=0x%04x (type=%d:%d) dur=0x%04x seq=0x%04x "
627 "data_len=%d%s%s\n", 629 "data_len=%d%s%s\n",
628 fc, WLAN_FC_GET_TYPE(fc), WLAN_FC_GET_STYPE(fc), 630 fc, HOSTAP_FC_GET_TYPE(fc), HOSTAP_FC_GET_STYPE(fc),
629 __le16_to_cpu(tx->duration_id), __le16_to_cpu(tx->seq_ctrl), 631 __le16_to_cpu(tx->duration_id), __le16_to_cpu(tx->seq_ctrl),
630 __le16_to_cpu(tx->data_len), 632 __le16_to_cpu(tx->data_len),
631 fc & WLAN_FC_TODS ? " [ToDS]" : "", 633 fc & WLAN_FC_TODS ? " [ToDS]" : "",
@@ -668,13 +670,13 @@ int hostap_80211_get_hdrlen(u16 fc)
668{ 670{
669 int hdrlen = 24; 671 int hdrlen = 24;
670 672
671 switch (WLAN_FC_GET_TYPE(fc)) { 673 switch (HOSTAP_FC_GET_TYPE(fc)) {
672 case WLAN_FC_TYPE_DATA: 674 case WLAN_FC_TYPE_DATA:
673 if ((fc & WLAN_FC_FROMDS) && (fc & WLAN_FC_TODS)) 675 if ((fc & WLAN_FC_FROMDS) && (fc & WLAN_FC_TODS))
674 hdrlen = 30; /* Addr4 */ 676 hdrlen = 30; /* Addr4 */
675 break; 677 break;
676 case WLAN_FC_TYPE_CTRL: 678 case WLAN_FC_TYPE_CTRL:
677 switch (WLAN_FC_GET_STYPE(fc)) { 679 switch (HOSTAP_FC_GET_STYPE(fc)) {
678 case WLAN_FC_STYPE_CTS: 680 case WLAN_FC_STYPE_CTS:
679 case WLAN_FC_STYPE_ACK: 681 case WLAN_FC_STYPE_ACK:
680 hdrlen = 10; 682 hdrlen = 10;