]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211: fix qos on mesh interfaces
authorFelix Fietkau <nbd@nbd.name>
Tue, 14 Mar 2023 09:59:50 +0000 (10:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 09:16:41 +0000 (11:16 +0200)
commitadc1dde209b4c654fd52046bc0668a4597e99dbe
treeb555e23dc05b95e6455388c8d458080ee3c65981
parent1c409ccea37fa5e2e100da54883aaec4d1626940
wifi: mac80211: fix qos on mesh interfaces

commit 4e348c6c6e23491ae6eb5e077848a42d0562339c 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: fb57fc3741cd ("wifi: mac80211: fix queue selection for mesh/OCB interfaces")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20230314095956.62085-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/wme.c