
Estoy intentando compartir mi red inalámbrica ( wlan0
) y sigo este tutorial:https://linuxalfi.wordpress.com/2011/11/08/connectify-for-linux-with-single-wireless-interface/
El problema es: si se inició hostapd, no podré conectarme a la red usando wpa_supplicant. Por otro lado, si me conecto a la red, no puedo iniciar hostapd. Estos dos hostapd y wpa_supplicant no pueden iniciarse por completo.
Aquí hay errores cuando intento iniciar hostapd:
root@me:~# hostapd /etc/hostapd.conf Configuration file: /etc/hostapd.conf Using interface new1 with hwaddr 84:4b:f5:4c:89:ab and ssid "Linux-Hotspot" Failed to set beacon parameters new1: Unable to setup interface.
Si se inició hostapd, se generaron estos errores si uso wpa_supplicant:
Successfully initialized wpa_supplicant new0: CTRL-EVENT-SCAN-STARTED new0: SME: Trying to authenticate with ac:86:74:26:54:72 (SSID='Ktx My Dinh' freq=2432 MHz) new0: SME: Authentication request to the driver failed new0: CTRL-EVENT-SCAN-STARTED
Y aquí estáiw list
root@me:~$ sudo iw list Wiphy phy0 max # scan SSIDs: 4 max scan IEs length: 2257 bytes Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports RSN-IBSS. Device supports AP-side u-APSD. Device supports T-DLS. Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP (00-0f-ac:4) * CMAC (00-0f-ac:6) Available Antennas: TX 0x1 RX 0x3 Configured Antennas: TX 0x1 RX 0x3 Supported interface modes: * IBSS * managed * AP * AP/VLAN * WDS * monitor * mesh point * P2P-client * P2P-GO
¿Qué puedo hacer para solucionarlos? Gracias de antemano.
Respuesta1
Consulte la parte inferior del resultado de la lista iw para ver algo como esto:
valid interface combinations:
* #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
total <= 3, #channels <= 2
* #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
total <= 4, #channels <= 1
(Esto es lo que muestra mi Raspberry Pi 3 para wlan0). Tenga en cuenta que el dispositivo solo admite un único canal entre las dos interfaces (administrada y AP).
Intente cambiar su hostapd.conf para que el canal especificado coincida con el de la red a la que intenta unirse.