wifi: mac80211: fix qos on mesh interfaces
authorFelix Fietkau <nbd@nbd.name>
Tue, 14 Mar 2023 09:59:50 +0000 (10:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Mar 2023 12:46:38 +0000 (13:46 +0100)
commit4e348c6c6e23491ae6eb5e077848a42d0562339c
tree9f271ae405c3b9e94a7de2333edcb6b2a7248052
parent923bf981eb6ecc027227716e30701bdcc1845fbf
wifi: mac80211: fix qos on mesh interfaces

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: 50e2ab392919 ("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>
net/mac80211/wme.c