]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix crash on getting sta info with uninitialized rate control
authorFelix Fietkau <nbd@openwrt.org>
Tue, 22 Jul 2014 19:00:26 +0000 (21:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Jul 2014 20:17:17 +0000 (22:17 +0200)
commit06b30473eb0ca058707bf54bbea8ea13cc2fb3e0
tree650a5ff1eb3b7b02f19ce8d652004f222a18d0a3
parent7627492928077b4e69da2ec87a56a78ef9e73263
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>
net/mac80211/cfg.c