From: Felix Fietkau Date: Mon, 11 Jan 2010 05:47:00 +0000 (+0100) Subject: mac80211: fix queue selection for data frames on monitor interfaces X-Git-Tag: v2.6.33-rc5~71^2~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193e70ef65a6c33f2935ce1f4adeb08ecb9202cf;p=pandora-kernel.git mac80211: fix queue selection for data frames on monitor interfaces When ieee80211_monitor_select_queue encounters data frames, it selects the WMM AC based on skb->priority and assumes that skb->priority contains a valid 802.1d tag. However this assumption is incorrect, since ieee80211_select_queue has not been called at this point. If skb->priority > 7, an array overrun occurs, which could lead to invalid values, resulting in crashes in the tx path. Fix this by setting skb->priority based on the 802.11 header for QoS frames and using the default AC for all non-QoS frames. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed