arsv / wsupp-libc Goto Github PK
View Code? Open in Web Editor NEWwpa supplicant from minibase ported to standard libc
License: GNU General Public License v3.0
wpa supplicant from minibase ported to standard libc
License: GNU General Public License v3.0
build fails with i486 cross compiler because there size_t (as defined in common.h) != unsigned long, but unsigned int
after a while of being connected, sometimes wsupp stops working, while the process stays active.
when this happens, wifi
shows the AP as "idle" in the bottom line of status display, but the AP itself is not listed. when i then do wifi scan
, the AP then shows up in the list, with a *
next to its name, but wsupp still doesn't connect to it.
i suspect this happens when, after the disconnect happens, the AP is momentarily not in the scan results of the scan done by wsupp itself. i believe this to be so because i noticed on other disconnects (watching the output of my dhcp
replacement script) wsupp immediately connects again.
this happens also when i use the minibase wsupp, it is probably due to me not using the ifmon
tool, yet i think since on some disconnects reconnect works, it is the intention of the program to always re-establish the connection, which makes sense (alternatively, wsupp could exit, so the service supervisor would automatically restart it).
this version fails to find the rfkill dir:
stat("/sys/class/net/wlan1/phy80211/rfkill", 0x7fff8d02d530) = -1 ENOENT (No such file or directory)
read(6, "\1\0\0\0\1\0\0\0", 128) = 8
stat("/sys/class/net/wlan1/phy80211/rfkill", 0x7fff8d02d530) = -1 ENOENT (No such file or directory)
read(6, 0x7fff8d02d4b0, 128) = -1 EAGAIN (Resource temporarily unavailable)
ppoll([{fd=3, events=POLLIN}, {fd=-1}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 4, {1, 0}, [], 8) = 0 (Timeout)
unlink("/var/run/ctrl/wsupp") = 0
exit_group(0) = ?
the right dir is /sys/class/net/wlan1/phy80211/rfkill1/
the minibase-one does it right:
unlinkat(AT_FDCWD, "/var/wiap", 0) = 0
sendto(3, "\34\0\0\0\23\0\1\0\2\0\0\0\0\0\0\0!\0\0\0\10\0\3\0\6\0\0\0", 28, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 28
ppoll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 4, {60, 0}, [], 8) = 3 ([{fd=3, revents=POLLIN}, {fd=4, revents=POLLERR}, {fd=6, revents=POLLIN}], left {59, 999991898})
recvfrom(3, "0\0\0\0\2\0\0\0\2\0\0\0\35G\0\0\234\377\377\377\34\0\0\0\23\0\1\0\2\0\0\0"..., 6136, MSG_DONTWAIT, NULL, NULL) = 48
close(4) = 0
read(6, "\0\0\0\0\1\0\0\0", 128) = 8
newfstatat(AT_FDCWD, "/sys/class/net/wlan1/phy80211/rfkill0", 0x7ffe48a23550, 0) = -1 ENOENT (No such file or directory)
read(6, "\1\0\0\0\1\0\0\0", 128) = 8
newfstatat(AT_FDCWD, "/sys/class/net/wlan1/phy80211/rfkill1", {st_mode=S_IFDIR|0755, st_size=0, ...}, 0) = 0
ioctl(3, SIOCGIFFLAGS, {ifr_name="wlan1", ifr_flags=IFF_BROADCAST|IFF_MULTICAST}) = 0
ioctl(3, SIOCSIFFLAGS, {ifr_name="wlan1", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_MULTICAST}) = 0
read(6, 0x7ffe48a234d0, 128) = -1 EAGAIN (Resource temporarily unavailable)
ppoll([{fd=3, events=POLLIN}, {fd=-1}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}], 4, {60, 0}, [], 8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.