Skip to contentSkip to conversation

d80211: Add API to generate RTS and CTS-to-self frames

PATCH Applied Michael Buesch 2 participants 3 messages Feb 5, 2007 – Feb 9, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: Add API to generate RTS and CTS-to-self frames

This adds API calls to generate RTS and CTS-to-self frames. To be called if the device firmware requires the host to generate RTS/CTS frames.

include/linux/ieee80211.h +15 -0
Index: bu3sch-wireless-dev/include/linux/ieee80211.h
===================================================================
@@ -189,6 +189,21 @@ struct ieee80211_mgmt {
 } __attribute__ ((packed));
 
 
+/* Control frames */
+struct ieee80211_rts {
+	__le16 frame_control;
+	__le16 duration;
+	__u8 ra[6];
+	__u8 ta[6];
+} __attribute__ ((packed));
+
+struct ieee80211_cts {
+	__le16 frame_control;
+	__le16 duration;
+	__u8 ra[6];
+} __attribute__ ((packed));
+
+
 /* Authentication algorithms */
 #define WLAN_AUTH_OPEN 0
 #define WLAN_AUTH_SHARED_KEY 1
include/net/d80211.h +66 -2

86 lines not on this page · raw message

net/d80211/ieee80211.c +86 -11

122 lines not on this page · raw message

net/d80211/ieee80211_sta.c +0 -1
Index: bu3sch-wireless-dev/net/d80211/ieee80211_sta.c
===================================================================
@@ -2068,7 +2068,6 @@ static int ieee80211_sta_join_ibss(struc
 		control.power_level = local->hw.conf.power_level;
 		control.flags |= IEEE80211_TXCTL_NO_ACK;
 		control.retry_limit = 1;
-		control.rts_cts_duration = 0;
 
 		ifsta->probe_resp = skb_copy(skb, GFP_ATOMIC);
 		if (ifsta->probe_resp) {
Signature · 1 line
Greetings Michael.
Applied
#1 lore raw
Quoted 3 lines · Michael Buesch

This adds API calls to generate RTS and CTS-to-self frames. To be called if the device firmware requires the host to generate RTS/CTS frames.

Applied to my tree, thanks for the patch.

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs
#2 lore raw
Quoted 6 lines · Jiri Benc
Quoted 3 lines · Michael Buesch

This adds API calls to generate RTS and CTS-to-self frames. To be called if the device firmware requires the host to generate RTS/CTS frames.

Applied to my tree, thanks for the patch.

Did you also apply rt2x00 and bcm43xx followup patches?
Please note that rt2x00 is broken, if you apply this API change and leave the rt2x00 RTS fix out.

You don't necessarily need to apply that bcm43xx RTS patch. I can do it, too. In fact, it needs another bugfix to not crash. :) I think I already sent that fix to John.