Skip to contentSkip to conversation

adm8211: Adapt to filter configuration API

PATCH In review Michael Wu 2 participants 3 messages Sep 24, 2007 Networking drivers (wireless)

lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/1 adm8211: Adapt to filter configuration API

From: Michael Wu <[email protected]>

This makes p54 use the new filter configuration API in mac80211.

---

 drivers/net/wireless/p54.h       |    3 +
 drivers/net/wireless/p54common.c |   80 ++++++++++++++++++++++++++++----------
 2 files changed, 60 insertions(+), 23 deletions(-)
drivers/net/wireless/p54.h +2 -1
index e558d69..744c866 100644
@@ -52,7 +52,8 @@ struct p54_common {
 	int (*open)(struct ieee80211_hw *dev);
 	void (*stop)(struct ieee80211_hw *dev);
 	int mode;
-	u8 *mac_addr;
+	u8 mac_addr[ETH_ALEN];
+	u8 bssid[ETH_ALEN];
 	struct pda_iq_autocal_entry *iq_autocal;
 	unsigned int iq_autocal_len;
 	struct pda_channel_output_limit *output_limit;
drivers/net/wireless/p54common.c +58 -22

130 lines not on this page · raw message

author
#1 lore raw

Re: [PATCH] p54: Adapt to filter configuration API

Quoted 5 lines · Michael Wu

From: Michael Wu <[email protected]>

This makes p54 use the new filter configuration API in mac80211.

Err, and the title should be:

[PATCH] p54: Adapt to filter configuration API

Ugh.

-Michael Wu

#2 lore raw

Re: [PATCH] p54: Adapt to filter configuration API

Quoted 5 lines · Michael Wu
Quoted 4 lines · Michael Wu

From: Michael Wu <[email protected]>

This makes p54 use the new filter configuration API in mac80211.

Quoted 9 lines
Quoted 1 line

Err, and the title should be:

[PATCH] p54: Adapt to filter configuration API

Ugh.

-Michael Wu

K, I couldn't test it, but it looks OK! I'll provide a tested-by as soon as the API can be found in the git tree ;)

---

(the attached patch is just something to look at (although it should work too), it contains new information about the some remaining unknown fields and magics...)

drivers/net/wireless/p54.h +8 -3
diff -Nurp a/drivers/net/wireless/p54.h b/drivers/net/wireless/p54.h
@@ -32,9 +32,9 @@ struct p54_control_hdr {
 	__le16 magic1;
 	__le16 len;
 	__le32 req_id;
-	__le16 type;	/* enum control_frame_types */
-	u8 retry1;
-	u8 retry2;
+	__le16 type;	/* enum control_frame_types, or AID for all kinds for data frames */
+	u8 short_retry;
+	u8 long_retry;
 	u8 data[0];
 } __attribute__ ((packed));
 
@@ -52,6 +52,11 @@ struct p54_common {
 	int (*open)(struct ieee80211_hw *dev);
 	void (*stop)(struct ieee80211_hw *dev);
 	int mode;
+	int rx_antenna;
+	int slot_time;
+	__le16 freq;
+	int dtim_wakeup;
+	int rate_mask;
 	u8 *mac_addr;
 	struct pda_iq_autocal_entry *iq_autocal;
 	unsigned int iq_autocal_len;
drivers/net/wireless/p54common.c +75 -39

238 lines not on this page · raw message

drivers/net/wireless/p54common.h +43 -16

94 lines not on this page · raw message