wpa supplicant from minibase ported to standard libc

Alex Suykov ba3de6001c fix erroneous u64 ifindex 7 年之前
common a4971a787f size_t for memzero and nonzero 7 年之前
crypto 007ebc7f59 initial commit 7 年之前
netlink 007ebc7f59 initial commit 7 年之前
nlusctl 007ebc7f59 initial commit 7 年之前
.gitignore 007ebc7f59 initial commit 7 年之前
COPYING 007ebc7f59 initial commit 7 年之前
Makefile 007ebc7f59 initial commit 7 年之前
README 007ebc7f59 initial commit 7 年之前
common.h 007ebc7f59 initial commit 7 年之前
configure 007ebc7f59 initial commit 7 年之前
control.h 007ebc7f59 initial commit 7 年之前
netlink.h 007ebc7f59 initial commit 7 年之前
nlusctl.h 007ebc7f59 initial commit 7 年之前
rfkill.h 007ebc7f59 initial commit 7 年之前
wifi.1 007ebc7f59 initial commit 7 年之前
wifi.c 007ebc7f59 initial commit 7 年之前
wifi.h a20a411fdf wextra fixes 7 年之前
wifi_dump.c 007ebc7f59 initial commit 7 年之前
wifi_pass.c 007ebc7f59 initial commit 7 年之前
wifi_wire.c 007ebc7f59 initial commit 7 年之前
wsupp.8 007ebc7f59 initial commit 7 年之前
wsupp.c a20a411fdf wextra fixes 7 年之前
wsupp.h 007ebc7f59 initial commit 7 年之前
wsupp_apsel.c 007ebc7f59 initial commit 7 年之前
wsupp_cntrl.c 007ebc7f59 initial commit 7 年之前
wsupp_config.c 007ebc7f59 initial commit 7 年之前
wsupp_crypto.c 007ebc7f59 initial commit 7 年之前
wsupp_crypto.h 007ebc7f59 initial commit 7 年之前
wsupp_eapol.c 007ebc7f59 initial commit 7 年之前
wsupp_eapol.h 007ebc7f59 initial commit 7 年之前
wsupp_ifmon.c 007ebc7f59 initial commit 7 年之前
wsupp_netlink.c ba3de6001c fix erroneous u64 ifindex 7 年之前
wsupp_rfkill.c 89759a8704 fix rfkill test path 7 年之前
wsupp_slots.c 007ebc7f59 initial commit 7 年之前
wsupp_sta_ies.c 007ebc7f59 initial commit 7 年之前

README

This is a standalone version of wsupp, the WPA supplicant from minibase,
ported to standard libc and with minibase-specific parts removed.


!! DO NOT USE THIS VERSION !!

unless you are absolutely positively sure
libc dependency is beneficial in your case
(hint: it is not)

See https://github.com/arsv/minibase instead.


Once connection is established, this version attempts to spawn `dhcp $iface`
which is expected to configure the interface. The command should preferably
be short-running, but wsupp can tolerate long-running ones as well.

This version uses the same client protocol and the same file formats
as the original one from minibase. However, `wifi` here lack commands
to start or stop the service, because those require `ifmon` to work.


How to build:

./configure [cc=musl-gcc static]
make
make DESTDIR=... install

How to use:

wsupp wlan0

wifi
wifi scan
wifi connect Blackhole
wifi disconnect


The port is somewhat dirty right now, in that it retains code that makes
sense within minibase but not so much in libc environment. Maybe I will
fix that at some point.

If you are looking for a simple WPA supplicant to study,
check `wpa` from https://github.com/arsv/minibase/temp/wifi