瀏覽代碼

hostapd: update interface/bss list after set_config calls

set_config causes the ucode bss resource to be re-created and because of that
the bss list needs to be updated as well

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 2 年之前
父節點
當前提交
4871acef79
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/network/services/hostapd/src/src/ap/ucode.c

+ 1 - 0
package/network/services/hostapd/src/src/ap/ucode.c

@@ -146,6 +146,7 @@ uc_hostapd_bss_set_config(uc_vm_t *vm, size_t nargs)
 	hostapd_config_free(conf);
 
 	hostapd_setup_bss(hapd, hapd == iface->bss[0], !iface->conf->mbssid);
+	hostapd_ucode_update_interfaces();
 
 	ret = 0;