[haiku-commits] haiku: hrev56171 - src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci build/jam/images/definitions

  • From: Adrien Destugues <pulkomandy@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 9 Jun 2022 19:27:41 +0000 (UTC)

hrev56171 adds 2 changesets to branch 'master'
old head: 5797a8dec595d88f2e2b8b795db983e2cc45813b
new head: d13068c14801cf8cd72ad3cbc7354db560332573
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=d13068c14801+%5E5797a8dec595

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

d5af5c55219b: iaxwifi200: disable background scans for now
  
  It crashes the firmware after 40 scans. The issue has been reported to
  OpenBSD, until then we can leave this disabled. The consequence is that
  the wifi network list will not refresh while already connected to a
  network. But at least the connection remains online.

d13068c14801: iaxwifi200: add to regular image

                                   [ PulkoMandy <pulkomandy@xxxxxxxxxxxxx> ]

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

2 files changed, 6 insertions(+), 1 deletion(-)
build/jam/images/definitions/regular                             | 2 +-
.../kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c      | 5 +++++

############################################################################

Commit:      d5af5c55219b58b22334c8c072ecd8da1882c7e0
URL:         https://git.haiku-os.org/haiku/commit/?id=d5af5c55219b
Author:      PulkoMandy <pulkomandy@xxxxxxxxxxxxx>
Date:        Thu Jun  9 19:22:32 2022 UTC

iaxwifi200: disable background scans for now

It crashes the firmware after 40 scans. The issue has been reported to
OpenBSD, until then we can leave this disabled. The consequence is that
the wifi network list will not refresh while already connected to a
network. But at least the connection remains online.

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

diff --git 
a/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c 
b/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c
index 0aabc62579..dcbbaddbcf 100644
--- a/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c
+++ b/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c
@@ -7423,6 +7423,11 @@ iwx_bgscan(struct ieee80211com *ic)
        if (sc->sc_flags & IWX_FLAG_SCANNING)
                return 0;
 
+#ifdef __HAIKU__
+       // Stops working after 40 scans and crashes the firmware, so let's not 
do it.
+       return EOPNOTSUPP;
+#endif
+
        err = iwx_umac_scan_v14(sc, 1);
        if (err) {
                printf("%s: could not initiate scan\n", DEVNAME(sc));

############################################################################

Revision:    hrev56171
Commit:      d13068c14801cf8cd72ad3cbc7354db560332573
URL:         https://git.haiku-os.org/haiku/commit/?id=d13068c14801
Author:      PulkoMandy <pulkomandy@xxxxxxxxxxxxx>
Date:        Thu Jun  9 16:24:26 2022 UTC

iaxwifi200: add to regular image

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

diff --git a/build/jam/images/definitions/regular 
b/build/jam/images/definitions/regular
index 92f47a1029..91c733029c 100644
--- a/build/jam/images/definitions/regular
+++ b/build/jam/images/definitions/regular
@@ -232,8 +232,8 @@ SYSTEM_ADD_ONS_DRIVERS_NET += [ FFilterByBuildFeatures
        x86,x86_64 @{
                aironetwifi atheroswifi
                broadcom43xx
+               iaxwifi200 idualwifi7260
                iprowifi2100 iprowifi2200 iprowifi3945 iprowifi4965
-               idualwifi7260
                marvell88w8363 marvell88w8335
                ralinkwifi realtekwifi
        }@ # x86,x86_64


Other related posts:

  • » [haiku-commits] haiku: hrev56171 - src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci build/jam/images/definitions - Adrien Destugues