to enable wpa_supplicant with EAP-SIM and EAP-AKA I edited the file wpa_supplicant-full.config and set:
CONFIG_PCSC=y
CONFIG_EAP_AKA=y and CONFIG_EAP_SIM=y
hostapd compiling error:
make[4]: 'wpa_cli' is up to date.
CC ../src/utils/pcsc_funcs.c
../src/utils/pcsc_funcs.o: In function `scard_transmit':
pcsc_funcs.c:(.text.scard_transmit+0x22): undefined reference to `SCardTransmit'
pcsc_funcs.c:(.text.scard_transmit+0x44): undefined reference to `g_rgSCardT0Pci'
pcsc_funcs.c:(.text.scard_transmit+0x4c): undefined reference to `g_rgSCardT1Pci'
../src/utils/pcsc_funcs.o: In function `scard_deinit':
pcsc_funcs.c:(.text.scard_deinit+0xa): undefined reference to `SCardDisconnect'
pcsc_funcs.c:(.text.scard_deinit+0x14): undefined reference to `SCardReleaseContext'
../src/utils/pcsc_funcs.o: In function `scard_init':
pcsc_funcs.c:(.text.scard_init+0x22): undefined reference to `SCardEstablishContext'
pcsc_funcs.c:(.text.scard_init+0x34): undefined reference to `SCardListReaders'
pcsc_funcs.c:(.text.scard_init+0x52): undefined reference to `SCardListReaders'
pcsc_funcs.c:(.text.scard_init+0xe8): undefined reference to `SCardConnect'
pcsc_funcs.c:(.text.scard_init+0x106): undefined reference to `SCardBeginTransaction'
pcsc_funcs.c:(.text.scard_init+0x16c): undefined reference to `SCardEndTransaction'
pcsc_funcs.c:(.text.scard_init+0x354): undefined reference to `SCardEndTransaction'
collect2: error: ld returned 1 exit status
Makefile:1923: recipe for target 'wpa_supplicant' failed
make[4]: *** [wpa_supplicant] Error 1
I suppose there is a bug in the sources, can Nobody help?
I think the WPA EAP-SIM AKA is the future in WiFi scenario, does anyone want to help in implementing this feature in Openwrt?
Sorry for revice this topic but I get same issue, I try to use a OpenWRT router as EAPSIM Client, I have tried the patch but it seem not working with last release.
@micmac1 do you get the patch working with last version ?
In any case, adding EAP-SIM to hostapd implies a new dependencie for wpad/wpa_supplicant (libpcsclite), which is a critical package for OpenWrt architecture. I would like some feedback from some core developer, because maybe it could be more interesting a dedicated wpad/wpa_supplicant/hostapd package.
You have a Turris? and in your side it detects the card with pcsc_scan?
I couldn't test the patch I sent, so not sure if it works. Since I can't play with my main router too much, I've ordered a 4€ usb SIM reader and will do all the tests with a VM and wifi dongle