From: Jouni Malinen Date: Sat, 2 Nov 2013 13:57:36 +0000 (+0200) Subject: mac80211_hwsim: Fix radiotap header for ACK frames X-Git-Tag: v3.13-rc4~3^2~64^2^2~7^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76a56eb3b0fe82f77b1fb604dbf4a408e6ad7ba2;p=pandora-kernel.git mac80211_hwsim: Fix radiotap header for ACK frames The earlier addition of rt_tsft to struct hwsim_radiotap_hdr updated only mac80211_hwsim_monitor_tx() to fill in the new field. mac80211_hwsim_monitor_ack() did not set the rt_tsft field and as such, leaked eight bytes of kernel memory to user space. In addition, the resulting radiotap header is invalid since the field offsets do not match. Fix these issues by defining a separate radiotap header structure for the ACK frame case which does not use all the fields. Signed-off-by: Jouni Malinen Signed-off-by: Johannes Berg --- Reading git-diff-tree failed