Commit 49eb9130 authored by Johannes Rudolph's avatar Johannes Rudolph
Browse files

Skip MESH BSSID: 02:CA:FF:EE:BA:BF

parent f4a7ab38
...@@ -54,10 +54,18 @@ WLOC_EXT_API int get_position(const char *domain,const struct wloc_req *request, ...@@ -54,10 +54,18 @@ WLOC_EXT_API int get_position(const char *domain,const struct wloc_req *request,
{ {
if (request->bssids[i][0]+request->bssids[i][1]+request->bssids[i][2]+request->bssids[i][3]+request->bssids[i][4]+request->bssids[i][5]>0) if (request->bssids[i][0]+request->bssids[i][1]+request->bssids[i][2]+request->bssids[i][3]+request->bssids[i][4]+request->bssids[i][5]>0)
{ {
snprintf(data + strlen(data), 500 - strlen(data), //Skip MESH BSSID: 02:CA:FF:EE:BA:BF
"%02X%02X%02X%02X%02X%02X\r\n", if( request->bssids[i][0] != 0x02
request->bssids[i][0],request->bssids[i][1],request->bssids[i][2], && request->bssids[i][1] != 0xCA
request->bssids[i][3],request->bssids[i][4],request->bssids[i][5]); && request->bssids[i][2] != 0xFF
&& request->bssids[i][3] != 0xEE
&& request->bssids[i][4] != 0xBA
&& request->bssids[i][5] != 0xBE){
snprintf(data + strlen(data), 500 - strlen(data),
"%02X%02X%02X%02X%02X%02X\r\n",
request->bssids[i][0],request->bssids[i][1],request->bssids[i][2],
request->bssids[i][3],request->bssids[i][4],request->bssids[i][5]);
}
} }
} }
snprintf(head,500, snprintf(head,500,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment