Après différents essais la meilleure configuration pour la carte BCM4313 est la suivante…
Identification du matériel.
lspci -nnk | grep 14e4
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
Avec le module wl
sudo apt install broadcom-sta-dkms
Les autres modules Broadcom sont à blacklister
/etc/modprobe.d/ broadcom-sta-dkms.conf
#wl module from Broadcom conflicts with the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb
Il faut le linux-header du noyau et dkms pour pouvoir compiler le module lors de l’installation du noyau.
Vérification après reboot
lspci -nnk | grep -i broad -A2
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
DeviceName: Broadcom 802.11n+BT combo module
Subsystem: Hewlett-Packard Company BCM4313 802.11bgn Wireless Network Adapter [103c:1483]
Kernel driver in use: wl
Réglages
C’est avec un niveau TXpower en automatique que ça fonctionne le mieux chez moi
ip link
3: wlo2:
sudo /sbin/iwconfig wlo2 txpower auto
sudo /sbin/iwconfig
wlo2 IEEE 802.11 ESSID:"E-G"
Mode:Managed Frequency:2.412 GHz Access Point: 00:17:33:D0:53:CC
Bit Rate=54 Mb/s Tx-Power=1 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=55/70 Signal level=-55 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
NB il y a un bug sur la valeur de Tx-Power affichée. Quoiqu’il en soit la connexion est stable, sans erreurs de réception ou d’émission.
On peut rendre ça automatique avec un service systemd en créant le fichier /lib/systemd/system/wifi-txpower.service
[Unit]
Description=reduction de txpower avec pilote wl
#
Requires=sys-subsystem-net-devices-wlo2.device
After=network-online.target
[Service]
Type=oneshot
ExecStart=/sbin/iwconfig wlo2 txpower auto
#
[Install]
WantedBy=multi-user.targe
systemctl enable wifi-txpower.service
Vérification
systemctl status wifi-txpower
● wifi-txpower.service - reduction de txpower avec pilote wl
Loaded: loaded (/lib/systemd/system/wifi-txpower.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2020-02-06 19:05:14 CET; 6s ago
Process: 7900 ExecStart=/sbin/iwconfig wlo2 txpower auto (code=exited, status=0/SUCCESS)
Main PID: 7900 (code=exited, status=0/SUCCESS)
févr. 06 19:05:14 debian systemd[1]: Starting reduction de txpower avec pilote wl
févr. 06 19:05:14 debian systemd[1]: wifi-txpower.service: Succeeded.
févr. 06 19:05:14 debian systemd[1]: Started reduction de txpower avec pilote wl.
N.B de nombreux problèmes de compilation avec les noyaux récents
Avec bcma
On n’utilise plus les paquets broadcom mais uniquement firmware-brcm80211
firmware-brcm80211/testing,testing,unstable,unstable,now 20200918-1 all [installé]
On blacklist les autres modules intégrés au noyau
/etc/modprobe.d/broadcom.conf
#pour fonctionner avec bcma
blacklist b43
blacklist b43legacy
blacklist b44
Vérification
lspci -nnk | grep -i net -A2
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
DeviceName: Broadcom 802.11n+BT combo module
Subsystem: Hewlett-Packard Company BCM4313 802.11bgn Wireless Network Adapter [103c:1483]
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma
Adaptation du service wifi-txpower.service
ExecStart=/sbin/iwconfig wlp3s0b1 txpower auto
systemctl status wifi-txpower.service
○ wifi-txpower.service - reduction de txpower du pilote wifi
Loaded: loaded (/lib/systemd/system/wifi-txpower.service; enabled; preset: enabled)
Active: inactive (dead) since Mon 2022-10-17 13:29:01 CEST; 1h 45min ago
Process: 4472 ExecStart=/sbin/iwconfig wlp3s0b1 txpower auto (code=exited, status=0/SUCCESS)
Main PID: 4472 (code=exited, status=0/SUCCESS)
CPU: 2ms
oct. 17 13:29:01 debian systemd[1]: Starting reduction de txpower du pilote wifi...
oct. 17 13:29:01 debian systemd[1]: wifi-txpower.service: Deactivated successfully.
oct. 17 13:29:01 debian systemd[1]: Finished reduction de txpower du pilote wifi.