wpa supplicant from minibase ported to standard libc

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

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