[OpenWrt-Devel] Hooks on wifi up/down for starting/stopping dependent functionality?

2014-11-12 Thread Johan Almbladh
Hi, I'm trying to start/stop our Wi-Fi sharing daemons [1] in tandem with wifi up/down. On AA we used to patch /sbin/wifi, but on BB it seems this logic has moved into netifd and that it may be possible to do it patchless, perhaps by monitoring ubus for some event? I tried just doing "ubus listen

Re: [OpenWrt-Devel] Hooks on wifi up/down for starting/stopping dependent functionality?

2014-11-12 Thread Johan Almbladh
the corresponding UCI config entry in /etc/config/wireless? Johan On Wed, Nov 12, 2014 at 10:53 AM, Bastian Bittorf wrote: > * Johan Almbladh [12.11.2014 10:45]: > > I tried just doing "ubus listen" in one shell and then running "wifi" > from > > anothe

Re: [OpenWrt-Devel] Hooks on wifi up/down for starting/stopping dependent functionality?

2014-11-20 Thread Johan Almbladh
Thanks for the ubus pointers, Bastian. That should solve it :) Johan On Mon, Nov 17, 2014 at 10:34 AM, Bastian Bittorf wrote: > * Johan Almbladh [17.11.2014 10:22]: > > The hotplug scripts receive events for interface names, but they know > > nothing about the underlying co

[OpenWrt-Devel] [PATCH] mac80211: fix NULL pointer crash in monitor frame injection TX path

2015-01-29 Thread Johan Almbladh
This "patch to the patch" fixes a NULL pointer derefence crash in the new intermediate software queues. The crash can be reproduced by injecting an 802.11 frame with a BSSID that does not belong to a configured vif. The wperf tool (https://github.com/anyfi/wperf) may be convenient for doing this.