blob: f224183b3d5ecc43a1106a4ff0488bbcf0ecc112 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
#include "rw_pub.h"
unsigned char mhdr_get_station_status() { return RW_EVT_STA_IDLE; }
#include "td.h"
void td_pck_ps_ind(uint8_t vif_index, bool rx) {};
void td_timer_end(void *env) {};
struct td_env_tag td_env[NX_VIRT_DEV_MAX] = {{{{0}}}};
#include "vif_mgmt.h"
struct vif_info_tag vif_info_tab[NX_VIRT_DEV_MAX] = {{{0}}};
struct vif_mgmt_env_tag vif_mgmt_env = {{0}};
void rwnx_printf(char *fmt, ...) {}
#include "rwnx.h"
bool rwnxl_sleep(IDLE_FUNC wait_func, IDLE_FUNC do_func) { return true; };
void rwnxl_wakeup(IDLE_FUNC wait_func) {};
bool rwnxl_get_status_in_doze(void) { return true; };
void tpc_init(void) {};
void tpc_deinit(void) {};
#include "chan.h"
bool chan_is_on_channel(struct vif_info_tag *vif_entry) { return false; }
#include "mm_timer.h"
void mm_timer_set(struct mm_timer_tag *timer, uint32_t value) {};
// from app_bk.c
#include "app.h"
#include "include.h"
#include "mem_pub.h"
#include "rwnx_config.h"
#if (NX_POWERSAVE)
#include "ps.h"
#endif //(NX_POWERSAVE)
#include "main_none.h"
#include "sa_ap.h"
#include "sa_station.h"
#include "sm.h"
#include "uart_pub.h"
#include "hostapd_intf_pub.h"
#include "lwip/pbuf.h"
#include "mcu_ps_pub.h"
#include "param_config.h"
#include "power_save_pub.h"
#include "ps_debug_pub.h"
#include "rtos_error.h"
#include "rtos_pub.h"
#include "rw_msdu.h"
#include "rw_msg_rx.h"
#include "rw_pub.h"
#include "rxl_cntrl.h"
#include "txu_cntrl.h"
#include "wlan_ui_pub.h"
#include "app_music_pub.h"
#include "bk7011_cal_pub.h"
WIFI_CORE_T g_wifi_core = {0};
void bmsg_null_sender(void) {
OSStatus ret;
BUS_MSG_T msg;
msg.type = BMSG_NULL_TYPE;
msg.arg = 0;
msg.len = 0;
msg.sema = NULL;
if (!rtos_is_queue_empty(&g_wifi_core.io_queue)) {
return;
}
ret = rtos_push_to_queue(&g_wifi_core.io_queue, &msg, BEKEN_NO_WAIT);
if (kNoErr != ret) {
os_printf("bmsg_null_sender_failed\r\n");
}
}
void bmsg_ps_sender(uint8_t arg) {
OSStatus ret;
BUS_MSG_T msg;
if (g_wifi_core.io_queue) {
msg.type = BMSG_STA_PS_TYPE;
msg.arg = (uint32_t)arg;
msg.len = 0;
msg.sema = NULL;
ret = rtos_push_to_queue(&g_wifi_core.io_queue, &msg, BEKEN_NO_WAIT);
if (kNoErr != ret) {
os_printf("bmsg_ps_sender failed\r\n");
}
} else {
os_printf("g_wifi_core.io_queue null\r\n");
}
}
|