blob: 5bccaf8b24417633bd4de797b95d8bcd92c267b2 (
plain)
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
|
#ifndef POKEDIAMOND_MB_MB_H
#define POKEDIAMOND_MB_MB_H
#include "consts.h"
#define MB_TYPE_ILLEGAL 0
#define MB_TYPE_NORMAL 1
#define MB_TYPE_MULTIBOOT 2
typedef struct {
u16 length;
u16 rssi;
u16 bssid[3];
u16 ssidLength;
u8 ssid[32];
u16 capaInfo;
struct {
u16 basic;
u16 support;
} rateSet;
u16 beaconperiod;
u16 dtimPeriod;
u16 channel;
u16 cfpPeriod;
u16 cfpMaxDuration;
} MBParentBssDesc;
typedef struct {
u16 boot_type;
MBParentBssDesc parent_bss_desc;
} MBParam;
static inline const MBParam *MB_GetMultiBootParam() {
return (const MBParam *)HW_WM_BOOT_BUF;
}
static inline BOOL MB_IsMultiBootChild() {
return MB_GetMultiBootParam()->boot_type == MB_TYPE_MULTIBOOT;
}
#endif //POKEDIAMOND_MB_MB_H
|