Skip to content

hostapd: add more ubus options

Janusz Dziedzic requested to merge sta_monitor into devel

Add options for monitoring probe requests:

  • sta_monitor_set
  • sta_monitor_del
  • sta_monitor_get

Refactor also event settings:

  • event_mask_get
  • event_mask_set
  • event_mask_del

Added new option for mask: ubus call hostpad.wlan0 event_mask_set '{"event":"probe-req-filtered"}' ubus call hostapd.wlan0 sta_monitor_set '{"addr":"30:10:b3:6d:92:29"}'

After that we will see all probe request from 30:10:b3:6d:92:29: { "wifi.sta": {"ifname":"wlan0","event":"monitor","data":{"macaddr":"30:10:b3:6d:92:29","rssi":"-31"}} } { "wifi.sta": {"ifname":"wlan0","event":"monitor","data":{"macaddr":"30:10:b3:6d:92:29","rssi":"-29"}} }

Signed-off-by: Janusz Dziedzic janusz.dziedzic@iopsys.eu

Merge request reports