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
440ad399
Commit
440ad399
authored
3 years ago
by
Janusz Dziedzic
Browse files
Options
Downloads
Patches
Plain Diff
rebase and use wifi_dataelements.h
Signed-off-by:
Janusz Dziedzic
<
janusz.dziedzic@iopsys.eu
>
parent
218a32a6
Branches
Branches containing commit
No related tags found
1 merge request
!121
refactor opclass structure
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cntlr.h
+1
-1
1 addition, 1 deletion
src/cntlr.h
src/utils/opclass.c
+1
-0
1 addition, 0 deletions
src/utils/opclass.c
src/utils/opclass.h
+1
-34
1 addition, 34 deletions
src/utils/opclass.h
with
3 additions
and
35 deletions
src/cntlr.h
+
1
−
1
View file @
440ad399
...
@@ -17,9 +17,9 @@
...
@@ -17,9 +17,9 @@
#include
<timer_impl.h>
#include
<timer_impl.h>
#include
<cmdu_ackq.h>
#include
<cmdu_ackq.h>
#include
<map_module.h>
#include
<map_module.h>
#include
"utils/opclass.h"
#include
"wifi_dataelements.h"
#include
"wifi_dataelements.h"
#include
"utils/opclass.h"
extern
const
char
*
ubus_socket
;
extern
const
char
*
ubus_socket
;
...
...
This diff is collapsed.
Click to expand it.
src/utils/opclass.c
+
1
−
0
View file @
440ad399
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include
<map2.h>
#include
<map2.h>
#include
"utils.h"
#include
"utils.h"
#include
"debug.h"
#include
"debug.h"
#include
"../wifi_dataelements.h"
#include
"opclass.h"
#include
"opclass.h"
static
const
struct
wifi_opclass
e4
=
{
static
const
struct
wifi_opclass
e4
=
{
...
...
This diff is collapsed.
Click to expand it.
src/utils/opclass.h
+
1
−
34
View file @
440ad399
#ifndef _OPCLASS_H_
#ifndef _OPCLASS_H_
#define _OPCLASS_H_
#define _OPCLASS_H_
enum
wifi_opclass_dfs
{
WIFI_OPCLASS_CHANNEL_DFS_NONE
,
WIFI_OPCLASS_CHANNEL_DFS_USABLE
,
WIFI_OPCLASS_CHANNEL_DFS_AVAILABLE
,
WIFI_OPCLASS_CHANNEL_DFS_NOP
,
WIFI_OPCLASS_CHANNEL_DFS_CAC
,
};
struct
wifi_opclass_channel
{
uint8_t
channel
;
/* preference and reason */
uint8_t
preference
;
enum
wifi_opclass_dfs
dfs
;
uint32_t
cac_time
;
uint32_t
nop_time
;
};
struct
wifi_opclass_entry
{
uint8_t
id
;
int
bandwidth
;
int
max_txpower
;
int
channel_num
;
struct
wifi_opclass_channel
channel
[
64
];
};
struct
wifi_opclass
{
struct
timespec
entry_time
;
int
entry_num
;
struct
wifi_opclass_entry
entry
[
64
];
};
const
struct
wifi_opclass
*
wifi_opclass_e4
(
void
);
const
struct
wifi_opclass
*
wifi_opclass_e4
(
void
);
struct
wifi_opclass_entry
*
wifi_opclass_find_entry
(
struct
wifi_opclass
*
opclass
,
uint8_t
id
);
struct
wifi_opclass_entry
*
wifi_opclass_find_entry
(
struct
wifi_opclass
*
opclass
,
uint8_t
id
);
...
@@ -52,4 +18,5 @@ void wifi_opclass_dump(struct wifi_opclass *opclass);
...
@@ -52,4 +18,5 @@ void wifi_opclass_dump(struct wifi_opclass *opclass);
uint8_t
wifi_opclass_get_id
(
struct
wifi_opclass
*
opclass
,
uint8_t
channel
,
int
bandwidth
);
uint8_t
wifi_opclass_get_id
(
struct
wifi_opclass
*
opclass
,
uint8_t
channel
,
int
bandwidth
);
bool
wifi_opclass_channel_supported
(
struct
wifi_opclass
*
opclass
,
uint8_t
id
,
uint8_t
channel
,
int
bandwidth
);
bool
wifi_opclass_channel_supported
(
struct
wifi_opclass
*
opclass
,
uint8_t
id
,
uint8_t
channel
,
int
bandwidth
);
#endif
/* _OPCLASS_H_ */
#endif
/* _OPCLASS_H_ */
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