ath9k: fix invalid pointer access in the tx path
authorFelix Fietkau <[email protected]>
Fri, 15 Jun 2012 01:04:53 +0000 (03:04 +0200)
committerJohn W. Linville <[email protected]>
Tue, 19 Jun 2012 18:56:24 +0000 (14:56 -0400)
commit80b08a8d8829a58b5db14b1417151094cc28face
tree69a5f0c17529b1c3fda8344a65a7a6de86754264
parent76591bea9714a58d8924154068c78d702eb2cb17
ath9k: fix invalid pointer access in the tx path

After setup_frame_info has been called, only info->control.rates is still
valid, other control fields have been overwritten by the ath_frame_info
data. Move the access to info->control.vif for checking short preamble
to setup_frame_info before it gets overwritten.

This regression was introduced in commit d47a61aa
"ath9k: Fix multi-VIF BSS handling"

Signed-off-by: Felix Fietkau <[email protected]>
Reported-by: Thomas Hühn <[email protected]>
Acked-by: Sujith Manoharan <[email protected]>
Cc: [email protected] [3.4]
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/xmit.c