Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
M
map-controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
db314c0f
Commit
db314c0f
authored
5 months ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
wifi_dataelements.h: store bssid and ruid for quick lookup
parent
6ff3bb4b
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#220861
failed
3 months ago
Status:
Stage: static_code_analysis
Status:
Stage: compile_test
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cntlr_map.c
+3
-0
3 additions, 0 deletions
src/cntlr_map.c
src/wifi_dataelements.h
+2
-0
2 additions, 0 deletions
src/wifi_dataelements.h
with
5 additions
and
0 deletions
src/cntlr_map.c
+
3
−
0
View file @
db314c0f
...
@@ -246,6 +246,7 @@ int handle_topology_notification(void *cntlr, struct cmdu_buff *cmdu,
...
@@ -246,6 +246,7 @@ int handle_topology_notification(void *cntlr, struct cmdu_buff *cmdu,
node_del_sta
(
old_n
,
s
);
node_del_sta
(
old_n
,
s
);
}
}
memcpy
(
s
->
de_sta
->
bssid
,
ev
->
bssid
,
6
);
node_add_sta
(
n
,
s
);
node_add_sta
(
n
,
s
);
txcmdu
=
cntlr_gen_client_caps_query
(
c
,
c
->
almacaddr
,
s
->
macaddr
,
s
->
bssid
);
txcmdu
=
cntlr_gen_client_caps_query
(
c
,
c
->
almacaddr
,
s
->
macaddr
,
s
->
bssid
);
...
@@ -278,6 +279,7 @@ int handle_topology_notification(void *cntlr, struct cmdu_buff *cmdu,
...
@@ -278,6 +279,7 @@ int handle_topology_notification(void *cntlr, struct cmdu_buff *cmdu,
memcpy
(
s
->
bssid
,
ev
->
bssid
,
6
);
memcpy
(
s
->
bssid
,
ev
->
bssid
,
6
);
s
->
state
=
STA_CONNECTED
;
s
->
state
=
STA_CONNECTED
;
memcpy
(
s
->
de_sta
->
bssid
,
ev
->
bssid
,
6
);
node_add_sta
(
n
,
s
);
node_add_sta
(
n
,
s
);
txcmdu
=
cntlr_gen_client_caps_query
(
c
,
c
->
almacaddr
,
s
->
macaddr
,
s
->
bssid
);
txcmdu
=
cntlr_gen_client_caps_query
(
c
,
c
->
almacaddr
,
s
->
macaddr
,
s
->
bssid
);
...
@@ -631,6 +633,7 @@ int handle_topology_response(void *cntlr, struct cmdu_buff *cmdu, struct node *n
...
@@ -631,6 +633,7 @@ int handle_topology_response(void *cntlr, struct cmdu_buff *cmdu, struct node *n
s
->
de_sta
->
conn_time
=
conntime
;
s
->
de_sta
->
conn_time
=
conntime
;
s
->
assoc_time
=
time
(
NULL
)
-
conntime
;
s
->
assoc_time
=
time
(
NULL
)
-
conntime
;
memcpy
(
s
->
de_sta
->
bssid
,
bssid
,
6
);
node_add_sta
(
n
,
s
);
node_add_sta
(
n
,
s
);
cntlr_dbg
(
LOG_STA
,
"%s: STA "
MACFMT
" connected to Node "
MACFMT
"
\n
"
,
cntlr_dbg
(
LOG_STA
,
"%s: STA "
MACFMT
" connected to Node "
MACFMT
"
\n
"
,
__func__
,
MAC2STR
(
s
->
macaddr
),
MAC2STR
(
n
->
almacaddr
));
__func__
,
MAC2STR
(
s
->
macaddr
),
MAC2STR
(
n
->
almacaddr
));
...
...
...
...
This diff is collapsed.
Click to expand it.
src/wifi_dataelements.h
+
2
−
0
View file @
db314c0f
...
@@ -292,6 +292,7 @@ struct wifi_sta_element {
...
@@ -292,6 +292,7 @@ struct wifi_sta_element {
time_t
tsp
;
/* when the last STA-Link metrics response received */
time_t
tsp
;
/* when the last STA-Link metrics response received */
uint32_t
time_delta
;
/* tsp - time_delta (in ms) = when STA's metrics actually collected */
uint32_t
time_delta
;
/* tsp - time_delta (in ms) = when STA's metrics actually collected */
uint8_t
macaddr
[
6
];
uint8_t
macaddr
[
6
];
uint8_t
bssid
[
6
];
struct
wifi_caps_element
caps
;
struct
wifi_caps_element
caps
;
struct
wifi_wifi6_capabilities
wifi6caps
;
struct
wifi_wifi6_capabilities
wifi6caps
;
uint32_t
dl_rate
;
/* latest data rate in Kbps: ap -> sta */
uint32_t
dl_rate
;
/* latest data rate in Kbps: ap -> sta */
...
@@ -360,6 +361,7 @@ struct wifi_bss_element {
...
@@ -360,6 +361,7 @@ struct wifi_bss_element {
int
invalidate
;
int
invalidate
;
time_t
tsp
;
time_t
tsp
;
uint8_t
bssid
[
6
];
uint8_t
bssid
[
6
];
uint8_t
ruid
[
6
];
uint8_t
ssidlen
;
uint8_t
ssidlen
;
char
ssid
[
33
];
char
ssid
[
33
];
bool
enabled
;
bool
enabled
;
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment