#964140 V1:19-6 loads wrong firmware when >1 Broadcom network adapter present

#964140#5
Date:
2020-07-02 12:40:16 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate
***

   * What led up to the situation?
Upgrading to latest version from testing (1:019-6)
The .postinst script derives the vendor : product ID for Broadcom adapters
on this line:

pci=`lspci -n -d 14e4: | grep -o "14e4:[1234567890abcdef]\+" || true

The machine in question has an Ethernet adapter from Broadcom, so
the above test results in the two vendor IDs being reported with
the ethernet adapter listed first:


lspci -n -d 14e4: | grep -o "14e4:[1234567890abcdef]\+"
14e4:4401   <=== Ethernet adapter
14e4:4320

As a result the B43 wireless adapter is not found resulting in
the latest (broken for this adapter) firmware being downloaded
and installed.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Patch firmware-b43-installer.postinst to force classic firmware
--- firmware-b43-installer.postinst~ 2020-06-26 09:20:22.090176695 -0400
+++ firmware-b43-installer.postinst 2020-06-26 09:22:51.900010353 -0400
@@ -215,6 +215,7 @@
 fi

 # Fix for #960270
+latest=
 classic=1

 make_download_vars

   * What was the outcome of this action?
Classic firmware downloaded and installed

   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#964140#10
Date:
2020-08-15 21:45:21 UTC
From:
To:
b43-fwcutter still insists on installing the latest firmware (666 - sign of
the devil HA).
This package and b43-fwcutter are hopelessly broken on my previously
working system.
The last good version was 1:09-5, but that .deb is not available in any
repository. Please help.