...
- The OneWiFiMesh DB has tables such as Device List and Network list. A new table needs to be added here as “Neighbor List"
- The neighbor list table is to be populated using API in dm_neighbor_list.h
- dm_neighbor_* currently isn’t initialized or used. This API will be used to maintain the neighbor list
- The NeighborList database is to contain Topology Discovery and Response findings as below
| integer (PK) | Row ID| string | network id |
discoverer_mac | string / mac_address_t | The AP that discovered the neighbor |
|---|
discoveree_mac | string / mac_address_t | The AP that was discovered |
|---|
media |
|---|
neighborinteger (bitmap)posxfloatFrom EasyMeshposyfloat | From EasyMesh | pos_z | float | From EasyMesh |
|---|
next_hop | mac_address_t | From EasyMesh |
|---|
num_hops | int | From EasyMesh |
|---|
path_loss | int | From EasyMesh |
|---|
timestamp | uint64 | Time when entry was last updated| Wireless specific |
signal_strength | char | Wireless specific |
|---|
bandwidth | wifi_channelBandwidth | Wireless specific |
|---|
bss_color | char | Wireless specific |
|---|
channel_util | char | Wireless specific |
|---|
| sta_count | short | Wireless specific |
|---|
em_base.h:
typedefstruct {
/* Key fields */
em_long_string_tnet_id;
mac_address_tdiscoverer_mac;
mac_address_t nbr;
float pos_x;
float pos_y;
float pos_z;
mac_address_t next_hop;
unsignedint num_hops;
int path_lossdiscoveree_mac;
/* Link type */
em_media_type_tmedia;
/* Wireless-specific fields */
bssid_tbssid;
ssid_tssid;
signedcharsignal_strength;
wifi_channelBandwidth_tbandwidth;
unsignedcharbss_color;
unsignedcharchannel_util;
unsignedshortsta_count;
unsignedcharbss_load_element_present;
} em_neighbor_info_t;