Open coolerUA opened 6 years ago
I do not have any systems with kernels as old as 3.10, thus I cannot see the warnings you get while compiling. I will try to find that problem and fix it, but that will take too much time for now.
I have fixed the scheduling while atomic bug. In addition, the "Operation not supported" situation will log the actual code that is failing.
Please pull and run again.
pulled, compiled under
# uname -r
4.15.9-1.el7.elrepo.x86_64
Output of hostapd not changed.
random: Trying to read entropy from /dev/random
Configuration file: ../../rtl_hostapd.conf
drv->ifindex=6
Configure bridge bridge0 for EAPOL traffic.
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Flushing old station entries
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Could not connect to kernel driver.
Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
rtl871x_set_key_ops
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=1)
rtl871x_set_key_ops
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=2)
rtl871x_set_key_ops
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
Using interface wlan0 with hwaddr 7c:8b:ca:08:50:a9 and ssid 'Testwifi'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=8):
54 65 73 74 77 69 66 69 Testwifi
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
WPS: Use configured UUID - hexdump(len=16): 12 34 56 78 9a bc de f0 12 34 56 78 9a bc de f0
WPS: Converting display to virtual_display for WPS 2.0 compliance
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
WPS: Build Beacon IEs
WPS: * Version (hardcoded 0x10)
WPS: * Wi-Fi Protected Setup State (2)
WPS: * Version2 (0x20)
WPS: Build Probe Response IEs
WPS: * Version (hardcoded 0x10)
WPS: * Wi-Fi Protected Setup State (2)
WPS: * Response Type (3)
WPS: * UUID-E
WPS: * Manufacturer
WPS: * Model Name
WPS: * Model Number
WPS: * Serial Number
WPS: * Primary Device Type
WPS: * Device Name
WPS: * Config Methods (210c)
WPS: * RF Bands (1)
WPS: * Version2 (0x20)
rtl871x_set_beacon_ops
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to set beacon head/tail or DTIM period
WPS: Building WPS IE for (Re)Association Response
WPS: * Version (hardcoded 0x10)
WPS: * Response Type (3)
WPS: * Version2 (0x20)
rtl871x_set_wps_assoc_resp_ie
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Failed to initialize WPS Registrar
wlan0: Unable to setup interface.
Flushing old station entries
ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
Could not connect to kernel driver.
Deauthenticate all stations
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=8 eloop_data=0x7f8ec0 user_data=(nil) handler=0x424e60
Here is strace output of it.
# strace -s 256 ./hostapd -dd ../../rtl_hostapd.conf
execve("./hostapd", ["./hostapd", "-dd", "../../rtl_hostapd.conf"], [/* 36 vars */]) = 0
brk(NULL) = 0x1be0000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c5000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=18910, ...}) = 0
mmap(NULL, 18910, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ffb854c0000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\35\2\0\0\0\0\0@\0\0\0\0\0\0\0(c \0\0\0\0\0\0\0\0\0@\0008\0\n\0@\0K\0J\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0000\2\0\0\0\0\0\0000\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0\240I\30\0\0\0\0\0\240I\30\0\0\0\0\0\240I\30\0\0\0\0\0\34\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\224}\33\0\0\0\0\0\224}\33\0\0\0\0\0\0\0 \0\0\0\0\0\1\0\0\0\6\0\0\0000\207\33\0\0\0\0\0000\207;\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2127336, ...}) = 0
mmap(NULL, 3940800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ffb84ee2000
mprotect(0x7ffb8509a000, 2097152, PROT_NONE) = 0
mmap(0x7ffb8529a000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b8000) = 0x7ffb8529a000
mmap(0x7ffb852a0000, 16832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ffb852a0000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854bf000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854bd000
arch_prctl(ARCH_SET_FS, 0x7ffb854bd740) = 0
mprotect(0x7ffb8529a000, 16384, PROT_READ) = 0
mprotect(0x666000, 4096, PROT_READ) = 0
mprotect(0x7ffb854c6000, 4096, PROT_READ) = 0
munmap(0x7ffb854c0000, 18910) = 0
brk(NULL) = 0x1be0000
brk(0x1c01000) = 0x1c01000
brk(NULL) = 0x1c01000
open("/dev/random", O_RDONLY|O_NONBLOCK) = 3
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c4000
write(1, "random: Trying to read entropy from /dev/random\n", 48random: Trying to read entropy from /dev/random
) = 48
rt_sigaction(SIGHUP, {0x4169a0, [HUP], SA_RESTORER|SA_RESTART, 0x7ffb84f17270}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x4169a0, [USR1], SA_RESTORER|SA_RESTART, 0x7ffb84f17270}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGINT, {0x4169a0, [INT], SA_RESTORER|SA_RESTART, 0x7ffb84f17270}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x4169a0, [TERM], SA_RESTORER|SA_RESTART, 0x7ffb84f17270}, {SIG_DFL, [], 0}, 8) = 0
write(1, "Configuration file: ../../rtl_hostapd.conf\n", 43Configuration file: ../../rtl_hostapd.conf
) = 43
open("../../rtl_hostapd.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=602, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
read(4, "interface=wlan0\nctrl_interface=/var/run/hostapd\nssid=Testwifi\nchannel=1\nwpa=2\nwpa_passphrase=12345678\nbridge=bridge0\neap_server=1\nwps_state=2\nuuid=12345678-9abc-def0-1234-56789abcdef0\ndevice_name=RTL8188EU\nmanufacturer=Realtek\nmodel_name=RTW_SOFTAP\nmodel_n"..., 4096) = 602
read(4, "", 4096) = 0
close(4) = 0
munmap(0x7ffb854c3000, 4096) = 0
socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, SIOCGIFFLAGS, {ifr_name="wlan0", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_MULTICAST}) = 0
ioctl(4, SIOCGIFINDEX, {ifr_name="wlan0", }) = 0
write(1, "drv->ifindex=6\n", 15drv->ifindex=6
) = 15
socket(AF_PACKET, SOCK_RAW, 36488) = 5
ioctl(5, SIOCGIFINDEX, {ifr_name="wlan0", }) = 0
bind(5, {sa_family=AF_PACKET, proto=0x888e, if6, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0
ioctl(5, SIOCGIFHWADDR, {ifr_name="wlan0", ifr_hwaddr=7c:8b:ca:08:50:a9}) = 0
write(1, "Configure bridge bridge0 for EAPOL traffic.\n", 44Configure bridge bridge0 for EAPOL traffic.
) = 44
socket(AF_PACKET, SOCK_RAW, 36488) = 6
ioctl(6, SIOCGIFINDEX, {ifr_name="bridge0", }) = 0
bind(6, {sa_family=AF_PACKET, proto=0x888e, if5, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0
ioctl(6, SIOCGIFHWADDR, {ifr_name="bridge0", ifr_hwaddr=74:da:da:05:2a:c0}) = 0
ioctl(4, SIOCSIWMODE, 0x7ffc9d20f6e0) = 0
socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 8
bind(8, {sa_family=AF_NETLINK, pid=0, groups=00000001}, 12) = 0
write(1, "BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)\n", 51BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
) = 51
write(1, "Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm\n", 64Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm
) = 64
write(1, "Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBm\n", 65Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=0 dBm
) = 65
write(1, "Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBm\n", 66Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=0 dBm
) = 66
write(1, "Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBm\n", 66Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=0 dBm
) = 66
write(1, "Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBm\n", 66Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=0 dBm
) = 66
write(1, "Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBm\n", 66Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=0 dBm
) = 66
write(1, "Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm\n", 66Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=0 dBm
) = 66
write(1, "Completing interface initialization\n", 36Completing interface initialization
) = 36
write(1, "Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz\n", 52Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
) = 52
write(1, "RATE[0] rate=10 flags=0x1\n", 26RATE[0] rate=10 flags=0x1
) = 26
write(1, "RATE[1] rate=20 flags=0x1\n", 26RATE[1] rate=20 flags=0x1
) = 26
write(1, "RATE[2] rate=55 flags=0x1\n", 26RATE[2] rate=55 flags=0x1
) = 26
write(1, "RATE[3] rate=110 flags=0x1\n", 27RATE[3] rate=110 flags=0x1
) = 27
write(1, "RATE[4] rate=60 flags=0x0\n", 26RATE[4] rate=60 flags=0x0
) = 26
write(1, "RATE[5] rate=90 flags=0x0\n", 26RATE[5] rate=90 flags=0x0
) = 26
write(1, "RATE[6] rate=120 flags=0x0\n", 27RATE[6] rate=120 flags=0x0
) = 27
write(1, "RATE[7] rate=180 flags=0x0\n", 27RATE[7] rate=180 flags=0x0
) = 27
write(1, "RATE[8] rate=240 flags=0x0\n", 27RATE[8] rate=240 flags=0x0
) = 27
write(1, "RATE[9] rate=360 flags=0x0\n", 27RATE[9] rate=360 flags=0x0
) = 27
write(1, "RATE[10] rate=480 flags=0x0\n", 28RATE[10] rate=480 flags=0x0
) = 28
write(1, "RATE[11] rate=540 flags=0x0\n", 28RATE[11] rate=540 flags=0x0
) = 28
write(1, "Flushing old station entries\n", 29Flushing old station entries
) = 29
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f570) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Could not connect to kernel driver.\n", 36Could not connect to kernel driver.
) = 36
write(1, "Deauthenticate all stations\n", 28Deauthenticate all stations
) = 28
write(1, "+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2\n", 63+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
) = 63
write(1, "rtl871x_set_key_ops\n", 20rtl871x_set_key_ops
) = 20
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f5a0) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to set encryption.\n", 26Failed to set encryption.
) = 26
write(1, "Failed to clear default encryption keys (ifname=wlan0 keyidx=0)\n", 64Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
) = 64
write(1, "rtl871x_set_key_ops\n", 20rtl871x_set_key_ops
) = 20
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f5a0) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to set encryption.\n", 26Failed to set encryption.
) = 26
write(1, "Failed to clear default encryption keys (ifname=wlan0 keyidx=1)\n", 64Failed to clear default encryption keys (ifname=wlan0 keyidx=1)
) = 64
write(1, "rtl871x_set_key_ops\n", 20rtl871x_set_key_ops
) = 20
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f5a0) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to set encryption.\n", 26Failed to set encryption.
) = 26
write(1, "Failed to clear default encryption keys (ifname=wlan0 keyidx=2)\n", 64Failed to clear default encryption keys (ifname=wlan0 keyidx=2)
) = 64
write(1, "rtl871x_set_key_ops\n", 20rtl871x_set_key_ops
) = 20
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f5a0) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to set encryption.\n", 26Failed to set encryption.
) = 26
write(1, "Failed to clear default encryption keys (ifname=wlan0 keyidx=3)\n", 64Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
) = 64
write(1, "Using interface wlan0 with hwaddr 7c:8b:ca:08:50:a9 and ssid 'Testwifi'\n", 72Using interface wlan0 with hwaddr 7c:8b:ca:08:50:a9 and ssid 'Testwifi'
) = 72
write(1, "Deriving WPA PSK based on passphrase\n", 37Deriving WPA PSK based on passphrase
) = 37
write(1, "SSID - hexdump_ascii(len=8):\n", 29SSID - hexdump_ascii(len=8):
) = 29
write(1, " 54 65 73 74 77 69 66 69 Testwifi \n", 72 54 65 73 74 77 69 66 69 Testwifi
) = 72
write(1, "PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]\n", 57PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
) = 57
write(1, "PSK (from passphrase) - hexdump(len=32): [REMOVED]\n", 51PSK (from passphrase) - hexdump(len=32): [REMOVED]
) = 51
gettimeofday({1521045714, 131129}, NULL) = 0
write(1, "WPS: Use configured UUID - hexdump(len=16): 12 34 56 78 9a bc de f0 12 34 56 78 9a bc de f0\n", 92WPS: Use configured UUID - hexdump(len=16): 12 34 56 78 9a bc de f0 12 34 56 78 9a bc de f0
) = 92
write(1, "WPS: Converting display to virtual_display for WPS 2.0 compliance\n", 66WPS: Converting display to virtual_display for WPS 2.0 compliance
) = 66
write(1, "WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance\n", 74WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
) = 74
write(1, "WPS: Build Beacon IEs\n", 22WPS: Build Beacon IEs
) = 22
write(1, "WPS: * Version (hardcoded 0x10)\n", 33WPS: * Version (hardcoded 0x10)
) = 33
write(1, "WPS: * Wi-Fi Protected Setup State (2)\n", 40WPS: * Wi-Fi Protected Setup State (2)
) = 40
write(1, "WPS: * Version2 (0x20)\n", 24WPS: * Version2 (0x20)
) = 24
write(1, "WPS: Build Probe Response IEs\n", 30WPS: Build Probe Response IEs
) = 30
write(1, "WPS: * Version (hardcoded 0x10)\n", 33WPS: * Version (hardcoded 0x10)
) = 33
write(1, "WPS: * Wi-Fi Protected Setup State (2)\n", 40WPS: * Wi-Fi Protected Setup State (2)
) = 40
write(1, "WPS: * Response Type (3)\n", 26WPS: * Response Type (3)
) = 26
write(1, "WPS: * UUID-E\n", 15WPS: * UUID-E
) = 15
write(1, "WPS: * Manufacturer\n", 21WPS: * Manufacturer
) = 21
write(1, "WPS: * Model Name\n", 19WPS: * Model Name
) = 19
write(1, "WPS: * Model Number\n", 21WPS: * Model Number
) = 21
write(1, "WPS: * Serial Number\n", 22WPS: * Serial Number
) = 22
write(1, "WPS: * Primary Device Type\n", 28WPS: * Primary Device Type
) = 28
write(1, "WPS: * Device Name\n", 20WPS: * Device Name
) = 20
write(1, "WPS: * Config Methods (210c)\n", 30WPS: * Config Methods (210c)
) = 30
write(1, "WPS: * RF Bands (1)\n", 21WPS: * RF Bands (1)
) = 21
write(1, "WPS: * Version2 (0x20)\n", 24WPS: * Version2 (0x20)
) = 24
write(1, "rtl871x_set_beacon_ops\n", 23rtl871x_set_beacon_ops
) = 23
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f420) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to set beacon head/tail or DTIM period\n", 46Failed to set beacon head/tail or DTIM period
) = 46
write(1, "WPS: Building WPS IE for (Re)Association Response\n", 50WPS: Building WPS IE for (Re)Association Response
) = 50
write(1, "WPS: * Version (hardcoded 0x10)\n", 33WPS: * Version (hardcoded 0x10)
) = 33
write(1, "WPS: * Response Type (3)\n", 26WPS: * Response Type (3)
) = 26
write(1, "WPS: * Version2 (0x20)\n", 24WPS: * Version2 (0x20)
) = 24
write(1, "rtl871x_set_wps_assoc_resp_ie\n", 30rtl871x_set_wps_assoc_resp_ie
) = 30
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f460) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Failed to initialize WPS Registrar\n", 35Failed to initialize WPS Registrar
) = 35
write(1, "wlan0: Unable to setup interface.\n", 34wlan0: Unable to setup interface.
) = 34
write(1, "Flushing old station entries\n", 29Flushing old station entries
) = 29
ioctl(4, _IOC(0, 0x8b, 0xfc, 0x00), 0x7ffc9d20f6a0) = -1 EOPNOTSUPP (Operation not supported)
dup(2) = 9
fcntl(9, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(9, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(9, "ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported\n", 50ioctl[RTL_IOCTL_HOSTAPD]: Operation not supported
) = 50
close(9) = 0
munmap(0x7ffb854c3000, 4096) = 0
write(1, "Could not connect to kernel driver.\n", 36Could not connect to kernel driver.
) = 36
write(1, "Deauthenticate all stations\n", 28Deauthenticate all stations
) = 28
write(1, "+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2\n", 63+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
) = 63
close(0) = 0
unlink("/var/run/hostapd/wlan0") = -1 ENOENT (No such file or directory)
rmdir("/var/run/hostapd") = -1 ENOENT (No such file or directory)
dup(2) = 0
fcntl(0, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ffb854c3000
write(0, "rmdir[ctrl_interface]: No such file or directory\n", 49rmdir[ctrl_interface]: No such file or directory
) = 49
close(0) = 0
munmap(0x7ffb854c3000, 4096) = 0
ioctl(4, SIOCSIWMODE, 0x7ffc9d20f730) = 0
close(4) = 0
close(6) = 0
close(5) = 0
close(3) = 0
gettimeofday({1521045714, 157407}, NULL) = 0
write(1, "ELOOP: remaining socket: sock=8 eloop_data=0x1be1ec0 user_data=(nil) handler=0x424e60\n", 86ELOOP: remaining socket: sock=8 eloop_data=0x1be1ec0 user_data=(nil) handler=0x424e60
) = 86
exit_group(1) = ?
+++ exited with 1 +++
offtopic Also, seems hostapd do nothing on line
Configure bridge bridge0 for EAPOL traffic.
If wlan0 was not in bridge, it does not add wlan0 to bridge0, even if
bridge=bridge0
in config. Or I am misunderstood this option. /offtopic
OS: CentOS 7 Kernel: 3.10.0-693.21.1.el7.x86_64 Driver compiles from this github repo with two warnings:
hostapd compiles from this github repo without errors. Starts without errors. Wifi interface added to bridge
Ios devices can't connect. hostapd shows in log:
Android devices connected successfully.
BUT! After about minute, in system messages log pops an error:
In line BUG: scheduling while atomic: {process} {process} can be different, but most of it it is swapper.
Tried to run on 4.15.9-1.el7.elrepo.x86_64 kernel. Compile runs without errors or warnings. But hostapd drops error
My hostapd config:
Device: TL-WN722N in syslog on plug-in:
lshw output:
lsusb
If needed any additional info - please post, I`ll add it.