La connexion wifi refuse de s’établir, certains canaux ne fonctionnent pas, etc
Avez vous pensé au CRDA?
Environnement
PC sous Linux Debian 10 Buster
Le CRDA? késako?
Le CRDA c’est l’indication de la zone régionale dans laquelle vous faites fonctionner votre équipement wifi.
C’est un paramètre essentiel pour le bon fonctionnement de la connexion wifi et le respect des normes.
Les box des FAI sont parfois très susceptibles et refusent qu’on ne soient pas un FR :=))
Mais parfois le driver ne le gère pas ou le matériel est initialisé avec une valeur impropre.
Forcer la région FR
Dans Debian il existe un programme /lib/crda/setregdomain chargé de gérer le CRDA mais il n’était pas satisfaisant pour moi, alors petite modification
#!/bin/sh #set -x #set -e echo > /var/log/crda.log REGDOMAIN=FR CRDA_CONF=/etc/default/crda date >> /var/log/crda.log [ -r "$CRDA_CONF" ] && . "$CRDA_CONF" #[ -z "$REGDOMAIN" ] && exit 0 echo $REGDOMAIN >> /var/log/crda.log exec /sbin/iw reg set "$REGDOMAIN"
Vérifications
journal de ma modification
root@debian:/var/log# cat crda.log Wed Jun 13 16:54:35 CEST 2018 FR
Paramètre CRDA
cat /etc/default/crda # Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set # the initial regulatory domain setting for IEEE 802.11 devices which operate # on this system. # # Governments assert the right to regulate usage of radio spectrum within # their respective territories so make sure you select a ISO/IEC 3166-1 alpha2 # country code suitable for your location or you may infringe on local # legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone # descriptions containing ISO/IEC 3166-1 alpha2 country codes. REGDOMAIN=FR
Interrogation de la connexion wifi
iw reg get global country FR: DFS-ETSI (2402 - 2482 @ 40), (N/A, 20), (N/A) (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS (57000 - 66000 @ 2160), (N/A, 40), (N/A) phy#0 country US: DFS-FCC (2402 - 2472 @ 40), (N/A, 30), (N/A) (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS (5735 - 5835 @ 80), (N/A, 30), (N/A) (57240 - 63720 @ 2160), (N/A, 40), (N/A)
On voit par cette commande que le matériel est initialisé pour fonctionner aux US