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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Multi-AP
map-controller
Commits
8419facf
Commit
8419facf
authored
3 years ago
by
Filip Matusiak
Browse files
Options
Downloads
Patches
Plain Diff
datalelements-2: fix enum redefinitions
parent
8335c5d0
No related branches found
No related tags found
4 merge requests
!124
intruduce wifi_opclass
,
!123
intruduce wifi_opclass
,
!122
Changing nodelist to Network.Devices
,
!118
dataelements-2: use wifi_dataelements in cntlr
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cntlr.h
+3
-14
3 additions, 14 deletions
src/cntlr.h
src/config.h
+3
-31
3 additions, 31 deletions
src/config.h
src/wifi_dataelements.h
+1
-1
1 addition, 1 deletion
src/wifi_dataelements.h
with
7 additions
and
46 deletions
src/cntlr.h
+
3
−
14
View file @
8419facf
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
#include
<cmdu_ackq.h>
#include
<cmdu_ackq.h>
#include
<map_module.h>
#include
<map_module.h>
#include
"wifi_dataelements.h"
extern
const
char
*
ubus_socket
;
extern
const
char
*
ubus_socket
;
typedef
uint32_t
object_t
;
typedef
uint32_t
object_t
;
...
@@ -88,19 +90,6 @@ struct una_sta_metrics {
...
@@ -88,19 +90,6 @@ struct una_sta_metrics {
struct
list_head
list
;
struct
list_head
list
;
};
};
enum
steer_trigger
{
TRIGGER_UNKNOWN
,
TRIGGER_UTIL
,
TRIGGER_LINK_QUALITY
,
TRIGGER_BK_UTIL
};
enum
steer_method
{
METHOD_ASSOC_CTL
,
METHOD_BTM_REQ
,
METHOD_ASYNC_BTM
};
struct
steer_attempt
{
struct
steer_attempt
{
struct
timespec
time
;
struct
timespec
time
;
uint8_t
src_bssid
[
6
];
uint8_t
src_bssid
[
6
];
...
@@ -367,7 +356,7 @@ struct controller {
...
@@ -367,7 +356,7 @@ struct controller {
int
num_tx_links
;
int
num_tx_links
;
int
num_rx_links
;
int
num_rx_links
;
struct
list_head
nodelist
;
struct
list_head
nodelist
;
struct
list_head
stalist
;
struct
list_head
stalist
;
/* list of sta */
struct
list_head
bcnreqlist
;
struct
list_head
bcnreqlist
;
struct
list_head
linklist
;
struct
list_head
linklist
;
struct
uloop_timeout
radar_timer
;
struct
uloop_timeout
radar_timer
;
...
...
This diff is collapsed.
Click to expand it.
src/config.h
+
3
−
31
View file @
8419facf
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
#ifndef CONFIG_H
#ifndef CONFIG_H
#define CONFIG_H
#define CONFIG_H
#include
"wifi_dataelements.h"
/* defined in main.c */
/* defined in main.c */
extern
int
verbose
;
extern
int
verbose
;
...
@@ -21,36 +23,6 @@ enum cred_diff {
...
@@ -21,36 +23,6 @@ enum cred_diff {
CONFIG_DIFF_AGENT_POLICY_CNT
=
1
<<
4
,
CONFIG_DIFF_AGENT_POLICY_CNT
=
1
<<
4
,
};
};
enum
aptype
{
AP_WIFI_FBSS
,
AP_WIFI_BBSS
,
AP_WIFI_COMBINED
,
};
enum
wifi_freqband
{
BAND_2
=
1
<<
0
,
/**< 0x1 for 2.4Ghz band. */
BAND_5
=
1
<<
1
,
/**< 0x2 for 5Ghz band. */
BAND_DUAL
=
3
,
/**< 0x3 for both 2.4 and 5Ghz bands */
BAND_60
=
1
<<
2
,
/**< 0x4 for 60Ghz */
BAND_6
=
1
<<
3
,
/**< 0x8 for 6Ghz */
BAND_UNKNOWN
=
1
<<
4
,
/**< 0x10 (and above) for unknown band */
};
enum
wifi_security_type
{
WIFI_SECURITY_NONE
,
WIFI_SECURITY_WEP64
,
WIFI_SECURITY_WEP128
,
WIFI_SECURITY_WPAPSK
,
WIFI_SECURITY_WPA2PSK
,
WIFI_SECURITY_FT_WPA2PSK
,
WIFI_SECURITY_WPA3PSK
,
WIFI_SECURITY_WPA3PSK_T
,
WIFI_SECURITY_FT_WPA3PSK
,
WIFI_SECURITY_WPA
,
WIFI_SECURITY_WPA2
,
WIFI_SECURITY_WPA3
,
};
struct
stax
{
struct
stax
{
char
macstring
[
32
];
/* ':' separated mac address string */
char
macstring
[
32
];
/* ':' separated mac address string */
struct
list_head
list
;
struct
list_head
list
;
...
@@ -69,7 +41,7 @@ struct iface_credential {
...
@@ -69,7 +41,7 @@ struct iface_credential {
uint8_t
ssid
[
33
];
uint8_t
ssid
[
33
];
uint16_t
vlanid
;
uint16_t
vlanid
;
uint8_t
multi_ap
;
uint8_t
multi_ap
;
enum
ap
type
mode
;
enum
wifi_bss
type
mode
;
uint8_t
disallow_bsta
;
uint8_t
disallow_bsta
;
bool
enabled
;
bool
enabled
;
struct
list_head
list
;
struct
list_head
list
;
...
...
This diff is collapsed.
Click to expand it.
src/wifi_dataelements.h
+
1
−
1
View file @
8419facf
...
@@ -17,7 +17,7 @@ extern "C" {
...
@@ -17,7 +17,7 @@ extern "C" {
#endif
#endif
#ifndef WIFI_H
/* deprecate eventually this section */
#ifndef WIFI_H
/* deprecate eventually this section */
enum
wifi_band
{
enum
wifi_
freq
band
{
BAND_2
=
1
<<
0
,
/**< 0x1 for 2.4Ghz band. */
BAND_2
=
1
<<
0
,
/**< 0x1 for 2.4Ghz band. */
BAND_5
=
1
<<
1
,
/**< 0x2 for 5Ghz band. */
BAND_5
=
1
<<
1
,
/**< 0x2 for 5Ghz band. */
BAND_DUAL
=
3
,
/**< 0x3 for both 2.4 and 5Ghz bands */
BAND_DUAL
=
3
,
/**< 0x3 for both 2.4 and 5Ghz bands */
...
...
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
register
or
sign in
to comment