/* * netsniff-ng - the packet sniffing beast * Copyright 2009, 2010 Daniel Borkmann. * Subject to the GPL, version 2. */ #ifndef TPRINTF_H #define TPRINTF_H #include "built_in.h" #include "colors.h" extern void tprintf_init(void); extern void tprintf(char *msg, ...) __check_format_printf(1, 2); extern void tprintf_flush(void); extern void tprintf_cleanup(void); extern void tputchar_safe(int c); extern void tputs_safe(const char *str, size_t len); #define colorize_start(fore) "\033[" __##fore "m" #define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" #define colorize_end() "\033[" __reset "m" #define DEFAULT_TTY_SIZE 80 #endif /* TPRINTF_H */ eader'> cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-05-03 12:08:43 +0300
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-05-04 20:59:55 +0300
commit5c08b0f5026fcc13efb947c4d1f2ca3558145f68 (patch)
tree17820fa70707a2078dc4605c8f075e9fbb2fe137 /Documentation
parentf742aaf36edf0390c54d0614bc4d20fd4cd3762a (diff)
iwlwifi: mvm: don't override the rate with the AMSDU len
The TSO code creates A-MSDUs from a single large send. Each A-MSDU is an skb and skb->len doesn't include the number of bytes which need to be added for the headers being added (subframe header, TCP header, IP header, SNAP, padding). To be able to set the right value in the Tx command, we put the number of bytes added by those headers in driver_data in iwl_mvm_tx_tso and use this value in iwl_mvm_set_tx_cmd. The problem by setting this value in driver_data is that it overrides the ieee80211_tx_info. The bug manifested itself when we send P2P related frames in CCK since the rate in ieee80211_tx_info is zero-ed. This of course is a violation of the P2P specification. To fix this, copy the original ieee80211_tx_info to the stack and pass it to the functions which need it. Assign the number of bytes added by the headers to the driver_data inside the skb itself. Fixes: a6d5e32f247c ("iwlwifi: mvm: send large SKBs to the transport") Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'Documentation')