summaryrefslogtreecommitdiffstats
path: root/target/linux/package/madwifi/patches/105-radiotap_endian_fix.patch
blob: 0f4f749a10ed970388ff72ecd4e6e19f36b74b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nur 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 22:17:35.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 = 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 = cpu_to_le16(sizeof(struct ath_rx_radiotap_header));
 				th->wr_ihdr.it_present = ATH_RX_RADIOTAP_PRESENT;
 				th->wr_flags = 0;
 				th->wr_rate = rate;