wpa supplicant from minibase ported to standard libc

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

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