Where can i find full hostapd commands?

Im using commands like

ubus call hostapd.wlan0 del_client '{"addr":"00:00:ca:ff:ee:00", "reason": 5, "deauth": True, "ban_time": 600}'
ubus call hostapd.wlan0 get_clients
ubus call hostapd.wlan0 list_bans

Where can i find documentation for hostapd.
I need all possible commands?
For example i need disassociatea client ?

You can run ubus -v list hostapd.wlan0 to see ubus calls available.

2 Likes

all right i did this and got this


root@AP1:~# ubus -v list hostapd.wlan0
'hostapd.wlan0' @bf89ef09
        "reload":{}
        "get_clients":{}
        "get_status":{}
        "del_client":{"addr":"String","reason":"Integer","deauth":"Boolean","ban_time":"Integer"}
        "update_airtime":{"sta":"String","weight":"Integer"}
        "list_bans":{}
        "wps_start":{}
        "wps_status":{}
        "wps_cancel":{}
        "update_beacon":{}
        "get_features":{}
        "switch_chan":{"freq":"Integer","bcn_count":"Integer","center_freq1":"Integer","center_freq2":"Integer","bandwidth":"Integer","sec_channel_offset":"Integer","ht":"Boolean","vht":"Boolean","he":"Boolean","block_tx":"Boolean","force":"Boolean"}
        "set_vendor_elements":{"vendor_elements":"String"}
        "notify_response":{"notify_response":"Integer"}
        "bss_mgmt_enable":{"neighbor_report":"Boolean","beacon_report":"Boolean","link_measurement":"Boolean","bss_transition":"Boolean"}
        "rrm_nr_get_own":{}
        "rrm_nr_list":{}
        "rrm_nr_set":{"list":"Array"}
        "rrm_beacon_req":{"addr":"String","mode":"Integer","op_class":"Integer","channel":"Integer","duration":"Integer","bssid":"String","ssid":"String"}
        "link_measurement_req":{"addr":"String","tx-power-used":"Integer","tx-power-max":"Integer"}
        "wnm_disassoc_imminent":{"addr":"String","duration":"Integer","neighbors":"Array","abridged":"Boolean"}
        "bss_transition_request":{"addr":"String","disassociation_imminent":"Boolean","disassociation_timer":"Integer","validity_period":"Integer","neighbors":"Array","abridged":"Boolean","dialog_token":"Integer"}

yeas , that is exacly what i have been looking for the last 2 days !! thanks a lot :+1:

ubus call hostapd.wlan0 bss_mgmt_enable as i understand it this command can on and off 802.11k (BSS) but how can i see if it is on or off?

Also see:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.