Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5122

Networking and servers • RaspberryPI2B AP mode : invalid/unknown driver 'nl80211

$
0
0
Bonjour à tous,
J'ai récemment reçu un Raspberry Pi 2B, et je veux le configurer en tant que point d'accès (AP). J'ai installé le Raspberry Pi OS Lite 32bit. Ensuite, j'ai pris un dongle WiFi et je l'ai connecté à mon Raspberry Pi. Il est bien reconnu ; quand je lance "ifconfig", j'obtiens :

Code:

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether 8c:18:d9:b9:12:f6  txqueuelen 1000  (Ethernet)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Et "iwconfig" :

Code:

wlan0     unassociated  ESSID:""  Nickname:"<WIFI@REALTEK>"          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated          Sensitivity:0/0          Retry:off   RTS thr:off   Fragment thr:off          Encryption key:off          Power Management:off          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Jusqu'à présent, je pense que tout va bien. J'installe ensuite hostapd et dnsmasq pour configurer le mode AP. Voici mon hostapd.conf :

Code:

interface=wlan0driver=nl80211ssid=monWifihw_mode=gchannel=6macaddr_acl=0auth_algs=1wpa=2wpa_passphrase=IcIlEmOt2Passwpa_key_mgmt=WPA-PSKwpa_pairwise=TKIP
Lorsque je lance le service, il ne démarre pas. Et quand je lance "hostapd hostapd.conf", j'obtiens :

Code:

random: Trying to read entropy from /dev/randomConfiguration file: /etc/hostapd/hostapd.confLine 2: invalid/unknown driver 'nl80211'
J'ai donc essayé d'installer le driver nl80211 avec différents modules : libnl-3-dev et raspberrypi-kernel-headers, mais cela ne change rien. J'ai aussi essayé d'installer le module RTL8812 via GitHub, puis de construire le Makefile, mais cela ne résout pas l'erreur.

Si quelqu'un a une idée, cela m'aiderait beaucoup !
Merci d'avance, et bonne journée !

Statistics: Posted by moa56 — Wed Feb 28, 2024 4:08 pm



Viewing all articles
Browse latest Browse all 5122

Trending Articles