38 lines
912 B
C
38 lines
912 B
C
/*
|
|
* wifi.c -- OreBolt OS v1.4 module: wifi
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*
|
|
* WiFi adapter control + monitor mode.
|
|
*
|
|
* v1.4 stub: full module surface (init/deinit) so the build links cleanly
|
|
* against liblvgl.so. Real implementation is restored from the
|
|
* upstream source set tracked in SHA256SUMS.
|
|
*/
|
|
#include "h2_ui.h"
|
|
#include "log_manager.h"
|
|
|
|
static lv_obj_t *wifi_screen = NULL;
|
|
|
|
void wifi_init(lv_obj_t *parent)
|
|
{
|
|
wifi_screen = lv_obj_create(parent);
|
|
lv_obj_set_size(wifi_screen, H2_LCD_WIDTH - 4, H2_LCD_HEIGHT - 4);
|
|
lv_obj_center(wifi_screen);
|
|
|
|
lv_obj_t *lbl = lv_label_create(wifi_screen);
|
|
lv_label_set_text(lbl, "wifi\nv1.4 (stub)");
|
|
lv_obj_center(lbl);
|
|
|
|
LOG_INF("wifi init");
|
|
}
|
|
|
|
void wifi_deinit(void)
|
|
{
|
|
if (wifi_screen) {
|
|
lv_obj_del(wifi_screen);
|
|
wifi_screen = NULL;
|
|
}
|
|
LOG_INF("wifi deinit");
|
|
}
|