Hallo,
ich bin gerade dabei, mir einen Access Point für meine Raspberry Pi einzurichten. Allerdings klappt das nicht. Ich glaube in meiner hostapd.conf Datei stimmt irgendwas nicht. ;/
Ich habe für die Installation folgendes Tutorial benutzt:
-> https://menzerath.eu/artikel/raspbe…s-point-nutzen/
hostapd.conf
# Genutzes Interface, muss bei Bedarf geändert werden (siehe "ifconfig"-Ausgabe)
interface=wlan0
# Realtek-Treiber, muss bei anderem Hersteller angepasst werden
driver=nl80211
# Deamon-Einstellungen
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
# WLAN-Konfiguration
ssid=Raspberry Pi
channel=1
hw_mode=g
ieee80211n=1
# WLAN-Sicherheit (Passwort unbedingt anpassen!)
wpa=2
wpa_passphrase=passwort123456
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
# Ländercode
country_code=DE
Display More
Wenn ich hostapd -dd /etc/hostapd/hostapd.conf ausführe kommt:
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Could not open file /sys/class/net/wlan0 /phy80211/name: No such file or directory
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: linkmode=0, operstate=6
Could not read interface wlan0 flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -1 (Operation not permitted)
nl80211: Try mode change after setting interface down
Could not read interface wlan0 flags: No such device
nl80211: Interface mode change to 2 from 0 failed
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
Display More
lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
dmesg
...
[ 3.390380] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 3.518467] usb 1-1.4: New USB device found, idVendor=148f, idProduct=5370
[ 3.529872] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.539939] usb 1-1.4: Product: 802.11 n WLAN
[ 3.548986] usb 1-1.4: Manufacturer: Ralink
[ 3.557209] usb 1-1.4: SerialNumber: 1.0
[ 4.263724] udevd[158]: starting version 175
[ 6.395587] cfg80211: Calling CRDA to update world regulatory domain
[ 7.410404] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[ 7.593098] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[ 7.825903] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[ 7.945048] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 7.949246] usbcore: registered new interface driver rt2800usb
...
Display More
Kann es sein, dass ich den falschen driver in der hostapd.conf verwende? Wenn ich in der Datei aber bei driver=rt2800usb schreib, kommt beim ausführen von hostapd -dd /etc/hostapd/hostapd.conf folgendes:
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
Line 4: invalid/unknown driver 'rt2800usb'
ctrl_interface_group=0
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Weiß einer weiter? Ich bin für jeden Tipp dankbar!
Gruß
knuut