diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-12-19 22:27:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:53 -0500 |
commit | 12342c475f5de17071eaf24ea2938ba8dfe285f2 (patch) | |
tree | a2cdfd191069397e093f2410009092e7e96c9325 /drivers/net/wireless/iwlwifi/iwl-4965.h | |
parent | 7e94041ca17685cf12c658b8edc008dd0bdb00c7 (diff) |
iwlwifi: proper monitor support
This patch changes the iwlwifi driver to properly support
monitor interfaces after the filter flags change.
The patch is originally created by Johannes Berg for iwl4965. I fixed some
of the comments and created a similar patch for iwl3945.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index 267ae75254fe..9a975efc9460 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -91,29 +91,6 @@ struct iwl4965_rx_mem_buffer { | |||
91 | struct list_head list; | 91 | struct list_head list; |
92 | }; | 92 | }; |
93 | 93 | ||
94 | struct iwl4965_rt_rx_hdr { | ||
95 | struct ieee80211_radiotap_header rt_hdr; | ||
96 | __le64 rt_tsf; /* TSF */ | ||
97 | u8 rt_flags; /* radiotap packet flags */ | ||
98 | u8 rt_rate; /* rate in 500kb/s */ | ||
99 | __le16 rt_channelMHz; /* channel in MHz */ | ||
100 | __le16 rt_chbitmask; /* channel bitfield */ | ||
101 | s8 rt_dbmsignal; /* signal in dBm, kluged to signed */ | ||
102 | s8 rt_dbmnoise; | ||
103 | u8 rt_antenna; /* antenna number */ | ||
104 | u8 payload[0]; /* payload... */ | ||
105 | } __attribute__ ((packed)); | ||
106 | |||
107 | struct iwl4965_rt_tx_hdr { | ||
108 | struct ieee80211_radiotap_header rt_hdr; | ||
109 | u8 rt_rate; /* rate in 500kb/s */ | ||
110 | __le16 rt_channel; /* channel in mHz */ | ||
111 | __le16 rt_chbitmask; /* channel bitfield */ | ||
112 | s8 rt_dbmsignal; /* signal in dBm, kluged to signed */ | ||
113 | u8 rt_antenna; /* antenna number */ | ||
114 | u8 payload[0]; /* payload... */ | ||
115 | } __attribute__ ((packed)); | ||
116 | |||
117 | /* | 94 | /* |
118 | * Generic queue structure | 95 | * Generic queue structure |
119 | * | 96 | * |
@@ -1054,6 +1031,7 @@ struct iwl4965_priv { | |||
1054 | 1031 | ||
1055 | u8 phymode; | 1032 | u8 phymode; |
1056 | int alloc_rxb_skb; | 1033 | int alloc_rxb_skb; |
1034 | bool add_radiotap; | ||
1057 | 1035 | ||
1058 | void (*rx_handlers[REPLY_MAX])(struct iwl4965_priv *priv, | 1036 | void (*rx_handlers[REPLY_MAX])(struct iwl4965_priv *priv, |
1059 | struct iwl4965_rx_mem_buffer *rxb); | 1037 | struct iwl4965_rx_mem_buffer *rxb); |