From 3ff5e3a01e9396f1edf861152cc7961231dddf1c Mon Sep 17 00:00:00 2001 From: mbm Date: Mon, 20 Feb 2006 19:02:18 +0000 Subject: Add jwright's madwifi endian patch git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3257 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../madwifi/patches/105-radiotap_endian_fix.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 target/linux/package/madwifi/patches/105-radiotap_endian_fix.patch (limited to 'target/linux/package') diff --git a/target/linux/package/madwifi/patches/105-radiotap_endian_fix.patch b/target/linux/package/madwifi/patches/105-radiotap_endian_fix.patch new file mode 100644 index 000000000..ad3fca9f2 --- /dev/null +++ b/target/linux/package/madwifi/patches/105-radiotap_endian_fix.patch @@ -0,0 +1,21 @@ +diff -ruN madwifi-ng-r1451-20060212/net80211/ieee80211_monitor.c madwifi-ng-r1451-20060212-patch/net80211/ieee80211_monitor.c +--- madwifi-ng-r1451-20060212/net80211/ieee80211_monitor.c 2006-02-01 15:07:11.000000000 -0500 ++++ madwifi-ng-r1451-20060212-patch/net80211/ieee80211_monitor.c 2006-02-21 02:42:30.000000000 -0500 +@@ -296,7 +296,7 @@ + sizeof(struct ath_tx_radiotap_header)); + memset(th, 0, sizeof(struct ath_tx_radiotap_header)); + th->wt_ihdr.it_version = 0; +- th->wt_ihdr.it_len = sizeof(struct ath_tx_radiotap_header); ++ th->wt_ihdr.it_len = __constant_cpu_to_le16(sizeof(struct ath_tx_radiotap_header)); + th->wt_ihdr.it_present = ATH_TX_RADIOTAP_PRESENT; + th->wt_flags = 0; + th->wt_rate = rate; +@@ -315,7 +315,7 @@ + sizeof(struct ath_rx_radiotap_header)); + memset(th, 0, sizeof(struct ath_rx_radiotap_header)); + th->wr_ihdr.it_version = 0; +- th->wr_ihdr.it_len = sizeof(struct ath_rx_radiotap_header); ++ th->wr_ihdr.it_len = __constant_cpu_to_le16(sizeof(struct ath_tx_radiotap_header)); + th->wr_ihdr.it_present = ATH_RX_RADIOTAP_PRESENT; + th->wr_flags = 0; + th->wr_rate = rate; -- cgit v1.2.3