Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
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
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
971df6f8
Commit
971df6f8
authored
9 months ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
add cntlr_find_fbss() and cntlr_find_bbss() helpers
parent
06ca26cf
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#189537
passed
9 months ago
Stage: static_code_analysis
Stage: compile_test
Changes
3
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cntlr.c
+22
-0
22 additions, 0 deletions
src/cntlr.c
src/cntlr.h
+4
-0
4 additions, 0 deletions
src/cntlr.h
src/mactable.h
+6
-5
6 additions, 5 deletions
src/mactable.h
with
32 additions
and
5 deletions
src/cntlr.c
+
22
−
0
View file @
971df6f8
...
...
@@ -78,6 +78,28 @@ struct netif_iface *cntlr_find_iface(struct controller *c, uint8_t *macaddr)
return
(
struct
netif_iface
*
)
entry
->
data
;
}
struct
netif_iface
*
cntlr_find_iface_type
(
struct
controller
*
c
,
uint8_t
*
macaddr
,
enum
macaddr_type
type
)
{
struct
macaddr_entry
*
entry
=
NULL
;
entry
=
mactable_lookup
(
c
->
mac_table
,
macaddr
,
type
);
if
(
WARN_ON
(
!
entry
))
return
NULL
;
return
(
struct
netif_iface
*
)
entry
->
data
;
}
struct
netif_iface
*
cntlr_find_fbss
(
struct
controller
*
c
,
uint8_t
*
macaddr
)
{
return
cntlr_find_iface_type
(
c
,
macaddr
,
MAC_ENTRY_FBSS
);
}
struct
netif_iface
*
cntlr_find_bbss
(
struct
controller
*
c
,
uint8_t
*
macaddr
)
{
return
cntlr_find_iface_type
(
c
,
macaddr
,
MAC_ENTRY_BBSS
);
}
struct
netif_radio
*
cntlr_find_radio
(
struct
controller
*
c
,
uint8_t
*
macaddr
)
{
struct
macaddr_entry
*
entry
=
NULL
;
...
...
...
...
This diff is collapsed.
Click to expand it.
src/cntlr.h
+
4
−
0
View file @
971df6f8
...
...
@@ -382,6 +382,10 @@ struct netif_radio *cntlr_find_radio_in_node_by_band(struct controller *c, struc
struct
netif_iface
*
cntlr_radio_add_iface
(
struct
controller
*
c
,
struct
netif_radio
*
r
,
uint8_t
*
hwaddr
);
struct
netif_iface
*
cntlr_find_iface
(
struct
controller
*
c
,
uint8_t
*
macaddr
);
struct
netif_iface
*
cntlr_find_iface_type
(
struct
controller
*
c
,
uint8_t
*
macaddr
,
enum
macaddr_type
type
);
struct
netif_iface
*
cntlr_find_fbss
(
struct
controller
*
c
,
uint8_t
*
macaddr
);
struct
netif_iface
*
cntlr_find_bbss
(
struct
controller
*
c
,
uint8_t
*
macaddr
);
#if (EASYMESH_VERSION >= 6)
bool
cntlr_radio_support_ap_wifi7
(
struct
controller
*
c
,
...
...
...
...
This diff is collapsed.
Click to expand it.
src/mactable.h
+
6
−
5
View file @
971df6f8
...
...
@@ -18,11 +18,12 @@
enum
macaddr_type
{
MAC_ENTRY_UNKNOWN
=
0
,
MAC_ENTRY_FBSS
,
/**< data points to struct netif_iface */
MAC_ENTRY_BSTA
,
/**< data points to struct sta */
MAC_ENTRY_ALID
,
/**< data points to struct node */
MAC_ENTRY_RADIO
,
/**< data points to struct netif_radio */
_MAC_ENTRY_MAX
MAC_ENTRY_FBSS
=
(
1
<<
0
),
/**< data points to struct netif_iface */
MAC_ENTRY_BBSS
=
(
1
<<
1
),
/**< data points to struct netif_iface */
MAC_ENTRY_BSTA
=
(
1
<<
2
),
/**< data points to struct sta */
MAC_ENTRY_ALID
=
(
1
<<
3
),
/**< data points to struct node */
MAC_ENTRY_RADIO
=
(
1
<<
4
),
/**< data points to struct netif_radio */
NUM_MAC_ENTRY_TYPES
,
};
struct
macaddr_entry
{
...
...
...
...
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