Problems detecting Redpine wifi/bluetooth card

I’m not sure what is causing the problem. I know that the Redpine firmware doesn’t load correctly roughly 1 out of every 3 times that I boot, but I can’t establish what causes it. I have tried every firmware version available, and none of them have fixed the problem. Maybe there is some kind of timing problem. It appears to be worse for me than for other people, but I have one of the first Librem 5 USA phones that was shipped, so maybe my phone is special.

At any rate, I have come to the conclusion that the RS9116 is simply not a good chip. I have tried several different Bluetooth speakers and earphones, and all of them constantly drop the connection with the RS9116. My current earphones (ONN Sport Gen 2) usually only play for about 10 seconds before they drop the connection and have to reconnect. In contrast, my Bluetooth keyboard works OK with the RS9116 and doesn’t disconnect. Maybe the problem is caused by the higher data rate that audio requires. Maybe it is the implementation of A2DP or HSP in the rsi driver or the firmware. I haven’t bothered to investigate why.

As I see it, there is no good option for WiFi/Bluetooth if the goal is software freedom. Atheros is no longer producing its ath9k chips (AR9280, AR9285, AR9380) whose WiFi could function without any firmware, because they didn’t have an embedded CPU, but these chips worked better with the proprietary firmware and required it for the Bluetooth to function. The RS9116 was the second freest option, because it can store its proprietary firmware on its chip, so it doesn’t have to be loaded at every boot from /lib/firmware, however Redpine stopped maintaining the driver, and the performance proved to be bad. So now the only options left are WiFi/Bluetooth chips that have to have their proprietary firmware loaded at every boot from /lib/firmware.

Reading between the lines, I am guessing that Purism knew that there were problems with the RS9116, but thought that Redpine Signals->Silicon Labs would keep working on the drivers and the firmware and fix the problems. The RS9116’s last firmware update was in 2022 and the last update to the rsi driver was in 2023, so Purism gave up waiting for Redpine and switched to SparkLAN in Feb. 2023. I give Purism credit for trying to find the freest option available, but it sucks for those of us who now have to buy a new M.2 card that costs $29 to get reliable WiFi/Bluetooth.

At the end of the day, I buy from Purism, because I know that the company is trying to do things that are hard, and don’t always work out. Purism took a major risk using the i.MX 8M Quad chip, that was released 5 months after the L5’s crowd funding started. It led to delays, but eventually Purism got everything to work, but the RS9116 was one of the engineering decisions that didn’t work, but at least Purism designed the phone with an M.2 slot so the WiFi/BT could be replaced.