Pass the correct frequency + secondary channel offset to hostapd
Signed-off-by: Felix Fietkau <nbd@nbd.name>
#include "utils/common.h"
#include "utils/ucode.h"
#include "drivers/driver.h"
+#include "ap/hostapd.h"
#include "wpa_supplicant_i.h"
#include "wps_supplicant.h"
#include "bss.h"
ucv_object_add(ret, "frequency", ucv_int64_new(bss->freq));
}
+#ifdef CONFIG_MESH
+ if (wpa_s->ifmsh) {
+ struct hostapd_iface *ifmsh = wpa_s->ifmsh;
+
+ ucv_object_add(ret, "sec_chan_offset", ucv_int64_new(ifmsh->conf->secondary_channel));
+ ucv_object_add(ret, "frequency", ucv_int64_new(ifmsh->freq));
+ }
+#endif
+
return ret;
}