hostapd crashes with segfault when using RT5370. This is because the driver reports Beacon RX prior to hostapd having completed the AP mode setup. This bug is reported and fixed here: http://hostap.epitest.fi/cgit/hostap/commit/?id=334ec001bbd31c5bc83d6593e58dfbbf6b8785a2 I changed the source and version in the hostapd package to the mentioned commit on the git repository and everything works again. I don't think however that this is the right way of fixing this. Should I make a patch and file this or something? At least until hostapd is updated?
I don't know much about hostapd, but from the looks of it that patch seems trivial to backport to the 2.1 release, so we could add it as a patch in buildroot until the next hostapd release. Care to send a patch doing that?
(In reply to comment #1) > I don't know much about hostapd, but from the looks of it that patch seems > trivial to backport to the 2.1 release, so we could add it as a patch in > buildroot until the next hostapd release. > > Care to send a patch doing that? How can I make a patch based on the git diff? I'm really new to working with buildroot and compiling kernel/rootfs in general.
In this particular case it is simple as the commit applies to the 2.1 release without problems, so something like: git clone git://w1.fi/hostap.git && cd hostapd git format-patch -s 334ec001bbd^..334ec001bbd 0001-Fix-Beacon-RX-before-AP-setup-completion.patch cp 0001-*patch /path/to/buildroot/package/hostapd/hostapd-0001-Fix-Beacon-RX-before-AP-setup-completion.patch I've committed this to git: http://git.buildroot.net/buildroot/commit/?id=f3a12bc334d4673df Could you please verify that it solves your issue?
Works perfectly!! Thanks this fixes the issue at least until the next release!
Great to hear. Notice that we have now moved to the recently released 2.2 version in git: http://git.buildroot.net/buildroot/commit/?id=b912fff5500653856697cf8d339e