mac80211: fix compile error when mesh is disabled
authorKoen Vandeputte <koen.vandeputte@citymesh.com>
Tue, 4 Oct 2022 08:48:18 +0000 (10:48 +0200)
committerKoen Vandeputte <koen.vandeputte@citymesh.com>
Tue, 4 Oct 2022 09:22:29 +0000 (11:22 +0200)
commit45109f69a64c31aa64db05d5de37cd7f6a1aaaa2
tree92a4ac676c767668f7105c0ba23e39997f6482fd
parentc27b43956407f3adc3cc2693792acd6b40a01877
mac80211: fix compile error when mesh is disabled

This fixes following compile error seen when
building mac80211 with mesh disabled:

.../backports-5.15.58-1/net/mac80211/agg-rx.c: In function 'ieee80211_send_addba_resp':
...backports-5.15.58-1/net/mac80211/agg-rx.c:255:17: error: 'struct sta_info' has no member named 'mesh'
  255 |         if (!sta->mesh)
      |                 ^~

sta_info.h shows this item as being optional based on flags:

struct mesh_sta *mesh;

Guard the check to fix this.

Fixes: f96744ba6b ("mac80211: mask nested A-MSDU support for mesh")
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
package/kernel/mac80211/patches/subsys/800-mac80211-mask-nested-A-MSDU-support-for-mesh.patch