### Describe the bug
rrm number is needed for roaming but sometimes it is not r…eturned by hostapd. This leads into issues as it is important for neighbor-list for bss transition requests. After some days no reason could be identified but it seems that it could be reproduced more often if a wireless interface is restarted.
root@OpenWrt6:/etc/config# ubus call hostapd.phy1-ap0 rrm_nr_get_own
Command failed: Not found
root@OpenWrt6:/etc/config# ubus call hostapd.phy1-ap0 rrm_nr_list
{
"list": [
[
"ff:ff:43:26:46:10",
"I-Gate",
"000c43264610ff5900008164090603037200"
],
[
"ff:ff:43:26:46:20",
"I-Gate",
"000c43264620ff5900008164090603037200"
],
[
"ff:ff:43:26:46:b0",
"I-Gate",
"000c432646b0ff5900008164090603037200"
],
[
"ff:ff:43:26:60:40",
"I-Gate",
"000c43266040ef0900005304070603010600"
],
[
"ff:ff:43:26:60:78",
"I-Gate",
"000c43266078ef0900005304070603010600"
],
[
"ff:ff:43:26:60:e0",
"I-Gate",
"000c432660e0ef0900005304070603010600"
]
]
}
root@OpenWrt6:/etc/config# ubus -v list hostapd.phy1-ap0
'hostapd.phy1-ap0' @570133d5
"reload":{}
"get_clients":{}
"get_sta_ies":{"address":"String"}
"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"}
"bss_transition_request":{"addr":"String","disassociation_imminent":"Boolean","disassociation_timer":"Integer","validity_period":"Integer","neighbors":"Array","abridged":"Boolean","dialog_token":"Integer","mbo_reason":"Integer","cell_pref":"Integer","reassoc_delay":"Integer"}
root@OpenWrt6:/etc/config#
### OpenWrt version
r23809-234f1a2efa
### OpenWrt release
23.05.3
### OpenWrt target/subtarget
ipq806x/generic
### Device
ZyXEL NBG6817
### Image kind
Official downloaded image
### Steps to reproduce
Execute
`ubus call hostapd.phy1-ap0 rrm_nr_get_own
`
This leads sometimes into
`Command failed: Not found`
for a while which also breaks bss transition requests with neighbor lists.
### Actual behaviour
`Command failed: Not found`
Which is strange as other command could be executed like you see above.
### Expected behaviour
rrm should be available everytime.
### Additional info
Could be perhaps created more often if the interface is restarted. Could be fixed sometimes with a restart of the whole device only.
### Diffconfig
_No response_
### Terms
- [X] I am reporting an issue for OpenWrt, not an unsupported fork.