Hi,
I have a Wifi dongle (rtl8192cu) running for years on my Raspberry Pi (Version 1 B) using Debian 8 Jessie in AP mode without issues.
As I wanted to change some things on my setup I decided to upgrade to a current version and therefore tried Debian 11 and 12.
On both versions I was not able to get my dongle running in AP mode. I tried to use the old 0.8.x version of hostapd which I compiled myself to be able to use the driver and also compiled a new version (2.6) which should work.
I copied all configs and things, everything should be the same as on Jessie.
The issue is that hostapd is not able to start:
If I try it manually, with debug:
Some configs:
/etc/network/interfaces:/etc/hostapd/hostapd.conf:
The error says it is not able to get started in master mode (AP), but it was running for years in this mode on Jessie and it is even mentioned in iw above.
Has someone any idea to get this running?
Thanks.
I have a Wifi dongle (rtl8192cu) running for years on my Raspberry Pi (Version 1 B) using Debian 8 Jessie in AP mode without issues.
As I wanted to change some things on my setup I decided to upgrade to a current version and therefore tried Debian 11 and 12.
On both versions I was not able to get my dongle running in AP mode. I tried to use the old 0.8.x version of hostapd which I compiled myself to be able to use the driver and also compiled a new version (2.6) which should work.
I copied all configs and things, everything should be the same as on Jessie.
The issue is that hostapd is not able to start:
Code:
root@machine2:/home/pi# systemctl status hostapd.service● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2024-07-04 11:28:05 CEST; 628ms ago Docs: man:hostapd(8) Process: 2801 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=1/FAILURE) CPU: 23msJul 04 11:28:05 machine2 systemd[1]: Failed to start hostapd.service - Access point and authentication server for Wi-Fi and Ethernet.
If I try it manually, with debug:
Code:
root@machine2:/home/pi# /usr/sbin/hostapd -ddd /etc/hostapd/hostapd.confrandom: Trying to read entropy from /dev/randomConfiguration file: /etc/hostapd/hostapd.confdrv->ifindex=3l2_sock_recv==l2_sock_xmit=0x0x1437a30ioctl[SIOCSIWMODE]: Invalid argumentCould not set interface to mode(3)!Could not set interface to master mode!rtl871xdrv driver initialization failed.hostapd_interface_deinit_free(0x14366d8)hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1hostapd_interface_deinit(0x14366d8)wlan0: interface state UNINITIALIZED->DISABLEDhostapd_bss_deinit: deinit bss wlan0wlan0: AP-DISABLEDhostapd_cleanup(hapd=0x1437320 (wlan0))hostapd_free_hapd_data: Interface wlan0 wasn't startedhostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinithostapd_interface_free(0x14366d8)hostapd_interface_free: free hapd 0x1437320hostapd_cleanup_iface(0x14366d8)hostapd_cleanup_iface_partial(0x14366d8)hostapd_cleanup_iface: free iface=0x14366d8
Some configs:
/etc/network/interfaces:
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)# Include files from /etc/network/interfaces.d:source /etc/network/interfaces.d/*auto loiface lo inet loopbackauto eth0iface eth0 inet static address 192.168.0.127 netmask 255.255.255.0 gateway 192.168.0.1# WiFi APauto wlan0iface wlan0 inet static address 172.16.0.1 netmask 255.255.255.0
Code:
interface=wlan0driver=rtl871xdrvssid=My_SSIDhw_mode=gchannel=1macaddr_acl=0auth_algs=1ignore_broadcast_ssid=0wpa=2wpa_passphrase=MYpwdwpa_key_mgmt=WPA-PSKwpa_pairwise=TKIPrsn_pairwise=CCMPmacaddr_acl=0
Code:
root@machine2:/home/pi# lsusbBus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Code:
root@machine2:/home/pi# iw listWiphy phy0 wiphy index: 0 max # scan SSIDs: 4 max scan IEs length: 2257 bytes max # sched scan SSIDs: 0 max # match sets: 0 RTS threshold: 2347 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports RSN-IBSS. Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP-128 (00-0f-ac:4) * CCMP-256 (00-0f-ac:10) * GCMP-128 (00-0f-ac:8) * GCMP-256 (00-0f-ac:9) * CMAC (00-0f-ac:6) * CMAC-256 (00-0f-ac:13) * GMAC-128 (00-0f-ac:11) * GMAC-256 (00-0f-ac:12) Available Antennas: TX 0 RX 0 Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * mesh point * P2P-client * P2P-GO Band 1: Capabilities: 0x186e HT20/HT40 SM Power Save disabled RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 7935 bytes DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 16 usec (0x07) HT Max RX data rate: 150 Mbps HT TX/RX MCS rate indexes supported: 0-7, 32 Bitrates (non-HT): * 1.0 Mbps * 2.0 Mbps * 5.5 Mbps * 11.0 Mbps * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps Frequencies: * 2412 MHz [1] (20.0 dBm) * 2417 MHz [2] (20.0 dBm) * 2422 MHz [3] (20.0 dBm) * 2427 MHz [4] (20.0 dBm) * 2432 MHz [5] (20.0 dBm) * 2437 MHz [6] (20.0 dBm) * 2442 MHz [7] (20.0 dBm) * 2447 MHz [8] (20.0 dBm) * 2452 MHz [9] (20.0 dBm) * 2457 MHz [10] (20.0 dBm) * 2462 MHz [11] (20.0 dBm) * 2467 MHz [12] (20.0 dBm) * 2472 MHz [13] (20.0 dBm) * 2484 MHz [14] (disabled) Supported commands: * new_interface * set_interface * new_key * start_ap * new_station * new_mpath * set_mesh_config * set_bss * authenticate * associate * deauthenticate * disassociate * join_ibss * join_mesh * remain_on_channel * set_tx_bitrate_mask * frame * frame_wait_cancel * set_wiphy_netns * set_channel * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * connect * disconnect * set_qos_map * set_multicast_to_unicast software interface modes (can always be added): * AP/VLAN * monitor interface combinations are not supported HT Capability overrides: * MCS: ff ff ff ff ff ff ff ff ff ff * maximum A-MSDU length * supported channel width * short GI for 40 MHz * max A-MPDU length exponent * min MPDU start spacing Device supports TX status socket option. Device supports HT-IBSS. Device supports SAE with AUTHENTICATE command Device supports low priority scan. Device supports scan flush. Device supports AP scan. Device supports per-vif TX power setting Driver supports full state transitions for AP/GO clients Driver supports a userspace MPM Device supports configuring vdev MAC-addr on create. max # scan plans: 1 max scan plan interval: -1 max scan plan iterations: 0 Supported TX frame types: * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 Supported RX frame types: * IBSS: 0x40 0xb0 0xc0 0xd0 * managed: 0x40 0xb0 0xd0 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * mesh point: 0xb0 0xc0 0xd0 * P2P-client: 0x40 0xd0 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * P2P-device: 0x40 0xd0 Supported extended features: * [ RRM ]: RRM * [ FILS_STA ]: STA FILS (Fast Initial Link Setup) * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211 * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support * [ DEL_IBSS_STA ]: deletion of IBSS station support * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
The error says it is not able to get started in master mode (AP), but it was running for years in this mode on Jessie and it is even mentioned in iw above.
Has someone any idea to get this running?
Thanks.
Statistics: Posted by wingi — Thu Jul 04, 2024 9:34 am