[PATCH v2 02/15] mesh: factor out rsn initialization

Daniel Golle daniel at makrotopia.org
Fri Apr 13 12:48:27 PDT 2018


Hi Peter,

On Fri, Apr 13, 2018 at 11:54:29AM -0700, Peter Oh wrote:
> > > > AP-ENABLED
> > > > mesh: Passphrase for SAE not configured
> > > > Init RSN failed. Deinit mesh...
> > > > wlan1: interface state ENABLED->DISABLED
> > > > AP-DISABLED
> > > > Segmentation fault
> > This segmentation fault part was introduced in these new mesh DFS
> > patches. Without them (i.e., the hostap.git master branch before today),
> > I saw no segmentation fault here -- the setup just failed cleanly with
> > that "passphrase for SAE not configured" message.
> What is the compiling option generating segmentation fault? I want to try.

This was on Atheros AR7240 SoC running OpenWrt (ie. MIPS32Kc bytecode).
The easiest way to reproduce this would be to grab an arbitary
ath9k-based 802.11a router and build a firmware using:
git clone https://git.openwrt.org/openwrt/openwrt.git/
cd openwrt
# remove the fix
rm package/network/services/hostapd/patches/020-mesh-properly-handle-sae_password.patch
make menuconfig
# select your router model
make
# add -j4 or such to have build in parallel

Once you flashed the firmware, configure a wireless network using UCI
on the target:

uci set wireless.radio1.channel='100'
uci set wireless.radio1.country='DE'
uci set wireless.default_radio1.mode=mesh
uci set wireless.default_radio1.encryption=psk2
uci set wireless.default_radio1.key='freifunk'
uci commit wireless
wifi

And you'll see wpa_supplicant segfaulting once CAC is done.


Cheers


Daniel



More information about the Hostap mailing list