lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 13 Dec 2006 18:00:36 +0100 (CET)
From:	Jiri Benc <jbenc@...e.cz>
To:	"John W. Linville" <linville@...driver.com>
Cc:	netdev@...r.kernel.org, Ivo van Doorn <ivdoorn@...il.com>
Subject: [PATCH 1/2] rt2x00: fix breakage after pkt_type field was removed

Fix breakage after pkt_type field was removed from ieee80211_tx_control.

Signed-off-by: Jiri Benc <jbenc@...e.cz>

---
 drivers/net/wireless/d80211/rt2x00/rt2400pci.c |    2 +-
 drivers/net/wireless/d80211/rt2x00/rt2500pci.c |    2 +-
 drivers/net/wireless/d80211/rt2x00/rt2500usb.c |    2 +-
 drivers/net/wireless/d80211/rt2x00/rt2x00.h    |    3 +++
 drivers/net/wireless/d80211/rt2x00/rt61pci.c   |    2 +-
 drivers/net/wireless/d80211/rt2x00/rt73usb.c   |    2 +-
 6 files changed, 8 insertions(+), 5 deletions(-)

--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt2400pci.c
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt2400pci.c
@@ -1428,7 +1428,7 @@ static void rt2400pci_write_tx_desc(stru
 	 * to be inserted into the frame.
 	 */
 	req_timestamp = !!(control->queue == IEEE80211_TX_QUEUE_BEACON ||
-		  	   control->pkt_type == PKT_PROBE_RESP);
+			   is_probe_resp(frame_control));
 
 	/*
 	 * Determine with what IFS priority this frame should be send.
--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt2500pci.c
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt2500pci.c
@@ -1569,7 +1569,7 @@ static void rt2500pci_write_tx_desc(stru
 	 * to be inserted into the frame.
 	 */
 	req_timestamp = !!(control->queue == IEEE80211_TX_QUEUE_BEACON ||
-		  	   control->pkt_type == PKT_PROBE_RESP);
+			   is_probe_resp(frame_control));
 
 	/*
 	 * Determine with what IFS priority this frame should be send.
--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt2500usb.c
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt2500usb.c
@@ -1540,7 +1540,7 @@ static void rt2500usb_write_tx_desc(stru
 	 * to be inserted into the frame.
 	 */
 	req_timestamp = !!(control->queue == IEEE80211_TX_QUEUE_BEACON ||
-		  	   control->pkt_type == PKT_PROBE_RESP);
+			   is_probe_resp(frame_control));
 
 	/*
 	 * Determine with what IFS priority this frame should be send.
--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt2x00.h
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt2x00.h
@@ -130,6 +130,9 @@ static int rt2x00_debug_level = 0;
 #define is_rts_frame(__fc) \
 	( !!((((__fc) &  IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) && \
 	     (((__fc) &  IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_RTS)) )
+#define is_probe_resp(__fc) \
+	( !!((((__fc) & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) && \
+	     (((__fc) & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP)) )
 
 /*
  * TX result flags.
--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt61pci.c
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt61pci.c
@@ -2024,7 +2024,7 @@ static void rt61pci_write_tx_desc(struct
 	 * to be inserted into the frame.
 	 */
 	req_timestamp = !!(control->queue == IEEE80211_TX_QUEUE_BEACON ||
-		  	   control->pkt_type == PKT_PROBE_RESP);
+			   is_probe_resp(frame_control));
 
 	/*
 	 * Determine with what IFS priority this frame should be send.
--- dscape.orig/drivers/net/wireless/d80211/rt2x00/rt73usb.c
+++ dscape/drivers/net/wireless/d80211/rt2x00/rt73usb.c
@@ -1803,7 +1803,7 @@ static void rt73usb_write_tx_desc(struct
 	 * to be inserted into the frame.
 	 */
 	req_timestamp = !!(control->queue == IEEE80211_TX_QUEUE_BEACON ||
-		  	   control->pkt_type == PKT_PROBE_RESP);
+			   is_probe_resp(frame_control));
 
 	/*
 	 * Determine with what IFS priority this frame should be send.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ