Commit baf765e1 authored by Felix Fietkau's avatar Felix Fietkau Committed by sanglipeng
Browse files

wifi: mac80211: fix qos on mesh interfaces

stable inclusion
from stable-v5.10.177
commit 560437bba14d0546de72e3e9d0a2f78d88e8cd91
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=560437bba14d0546de72e3e9d0a2f78d88e8cd91



--------------------------------

commit 4e348c6c upstream.

When ieee80211_select_queue is called for mesh, the sta pointer is usually
NULL, since the nexthop is looked up much later in the tx path.
Explicitly check for unicast address in that case in order to make qos work
again.

Cc: stable@vger.kernel.org
Fixes: 50e2ab39 ("wifi: mac80211: fix queue selection for mesh/OCB interfaces")
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20230314095956.62085-1-nbd@nbd.name


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 0d6f5153
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment