commit | fa8f136fe9a8fbdcb11a1db94f30146cae6d8777 | [log] [tgz] |
---|---|---|
author | Felix Fietkau <nbd@openwrt.org> | Tue Jul 22 21:00:26 2014 +0200 |
committer | Johannes Berg <johannes.berg@intel.com> | Tue Jul 22 22:17:17 2014 +0200 |
tree | 650a5ff1eb3b7b02f19ce8d652004f222a18d0a3 | |
parent | 8c26d458394be44e135d1c6bd4557e1c4e1a0535 [diff] |
mac80211: fix crash on getting sta info with uninitialized rate control If the expected throughput is queried before rate control has been initialized, the minstrel op for it will crash while trying to access the rate table. Check for WLAN_STA_RATE_CONTROL before attempting to use the rate control op. Reported-by: Jean-Pierre Tosoni <jp.tosoni@acksys.fr> Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>