All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] iwlwifi: use generic radiotap headers
@ 2008-07-15 12:29 Bruno Randolf
  2008-07-15 12:30 ` [PATCH 1/3] mac80211: add rx status flag for short preamble Bruno Randolf
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bruno Randolf @ 2008-07-15 12:29 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, johannes, tomas.winkler

rebased against current tree...

---

Bruno Randolf (3):
      iwlwifi: use generic mac80211 radiotap headers
      mac80211: radiotap: assume modulation from rates
      mac80211: add rx status flag for short preamble


 drivers/net/wireless/iwlwifi/iwl-3945.c     |  104 +---------------------
 drivers/net/wireless/iwlwifi/iwl-3945.h     |    1 
 drivers/net/wireless/iwlwifi/iwl-dev.h      |    1 
 drivers/net/wireless/iwlwifi/iwl-rx.c       |  129 ++++-----------------------
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    2 
 drivers/net/wireless/iwlwifi/iwl4965-base.c |    2 
 include/net/mac80211.h                      |    2 
 net/mac80211/rx.c                           |    7 +
 8 files changed, 35 insertions(+), 213 deletions(-)


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 1/3] mac80211: add rx status flag for short preamble
@ 2008-07-30 15:19 Bruno Randolf
  2008-07-30 15:20 ` [PATCH 2/3] mac80211: radiotap: assume modulation from rates Bruno Randolf
  0 siblings, 1 reply; 6+ messages in thread
From: Bruno Randolf @ 2008-07-30 15:19 UTC (permalink / raw)
  To: tomas.winkler; +Cc: linux-wireless, linville

and use it for the radiotap header

Signed-off-by: Bruno Randolf <br1@einfach.org>
---

 include/net/mac80211.h |    2 ++
 net/mac80211/rx.c      |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 24a69f6..2d01a75 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -367,6 +367,7 @@ static inline struct ieee80211_tx_info *IEEE80211_SKB_CB(struct sk_buff *skb)
  * @RX_FLAG_TSFT: The timestamp passed in the RX status (@mactime field)
  *	is valid. This is useful in monitor mode and necessary for beacon frames
  *	to enable IBSS merging.
+ * @RX_FLAG_SHORTPRE: Short preamble was used for this frame
  */
 enum mac80211_rx_flags {
 	RX_FLAG_MMIC_ERROR	= 1<<0,
@@ -377,6 +378,7 @@ enum mac80211_rx_flags {
 	RX_FLAG_FAILED_FCS_CRC	= 1<<5,
 	RX_FLAG_FAILED_PLCP_CRC = 1<<6,
 	RX_FLAG_TSFT		= 1<<7,
+	RX_FLAG_SHORTPRE	= 1<<8
 };
 
 /**
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 6d9ae67..254462f 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -143,6 +143,8 @@ ieee80211_add_rx_radiotap_header(struct ieee80211_local *local,
 	/* IEEE80211_RADIOTAP_FLAGS */
 	if (local->hw.flags & IEEE80211_HW_RX_INCLUDES_FCS)
 		*pos |= IEEE80211_RADIOTAP_F_FCS;
+	if (status->flag & RX_FLAG_SHORTPRE)
+		*pos |= IEEE80211_RADIOTAP_F_SHORTPRE;
 	pos++;
 
 	/* IEEE80211_RADIOTAP_RATE */


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-30 15:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 12:29 [PATCH 0/3] iwlwifi: use generic radiotap headers Bruno Randolf
2008-07-15 12:30 ` [PATCH 1/3] mac80211: add rx status flag for short preamble Bruno Randolf
2008-07-15 12:30 ` [PATCH 2/3] mac80211: radiotap: assume modulation from rates Bruno Randolf
2008-07-15 12:30 ` [PATCH 3/3] iwlwifi: use generic mac80211 radiotap headers Bruno Randolf
2008-07-15 18:00   ` Tomas Winkler
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30 15:19 [PATCH 1/3] mac80211: add rx status flag for short preamble Bruno Randolf
2008-07-30 15:20 ` [PATCH 2/3] mac80211: radiotap: assume modulation from rates Bruno Randolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.