summaryrefslogtreecommitdiff
path: root/recipes-kernel/rsi-91x/files/0001_concurrent_compilation_fix.patch
blob: 5615c78056d4bfadac89ef1bb7adc02cced41f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
rs9116 rsi-91x linux driver fails to compile in Station + AP mode

Silicon labs patch from case 00297277

https://community.silabs.com/5008Y000024DTst
==================================================
diff --git a/rsi_91x_per.c b/rsi_91x_per.c
index 031f3fc..d57b8fa 100644
--- a/rsi_91x_per.c
+++ b/rsi_91x_per.c
@@ -145,7 +145,6 @@ int rsi_send_rx_stats_cmd(struct rsi_hw *adapter, struct nlmsghdr *nlh)
   int status                        = 0;
 #endif
 
-  if (common->driver_mode == E2E_MODE) {
 #ifndef CONFIG_STA_PLUS_AP
     struct ieee80211_vif *vif = adapter->vifs[0];
     bool assoc                = vif && vif->bss_conf.assoc;
@@ -154,6 +153,7 @@ int rsi_send_rx_stats_cmd(struct rsi_hw *adapter, struct nlmsghdr *nlh)
     bool assoc                    = sta_vif && sta_vif->bss_conf.assoc;
 #endif
 
+  if (common->driver_mode == E2E_MODE) {
     if (!assoc && adapter->ps_state == PS_ENABLED)
       rsi_disable_ps(adapter);
     goto SEND_STATS_FRAME;