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
7f0f1a1a
Commit
7f0f1a1a
authored
4 years ago
by
Jakob Olsson
Browse files
Options
Downloads
Patches
Plain Diff
remove local map_module header
parent
d7c72635
No related branches found
No related tags found
No related merge requests found
Pipeline
#24558
failed
4 years ago
Stage: static_code_analysis
Stage: checkpatch
Stage: functional_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/map_module.h
+0
-84
0 additions, 84 deletions
src/include/map_module.h
with
0 additions
and
84 deletions
src/include/map_module.h
deleted
100644 → 0
+
0
−
84
View file @
d7c72635
/*
* map_module.h - multi-ap module(s) registration API header.
*
* Copyright (C) 2020 iopsys Software Solutions AB. All rights reserved.
*
* Author: anjan.chanda@iopsys.eu
*
* See LICENSE file for license related information.
*
*/
#ifndef MAP_MODULE_H
#define MAP_MODULE_H
#include
<stdint.h>
#include
<stdbool.h>
#include
<linux/types.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/* wifi-agents and wifi-controller will implement the multiap CMDU handler
* function. Based on the cmdu_type, appropriate action will be taken by
* wifi-agents and wifi-controller.
* 'msg' points to the TLVs buffer, as defined in the multiap specification
* and in that order.
* 'msglen' is length of the 'msg'.
*/
typedef
int
(
*
cmdu_handler_t
)(
uint16_t
cmdu_type
,
void
*
msg
,
size_t
msglen
);
typedef
uint8_t
map_module_id_t
[
32
];
enum
map_role
{
MAP_ROLE_AGENT
=
0x1
,
MAP_ROLE_CONTROLLER
=
0x2
};
enum
map_profile
{
MAP_PROFILE_1
,
MAP_PROFILE_2
,
};
/* wifiagents and wificontroller will call the following functions to register
* and unregister multiap CMDU handler modules with the libmap.so plugin.
*
* The libmap.so plugin will implement the '(un)register_multiap_module'
* functions.
* The plugin will parse the multiap CMDUs for sanity and calls the registered
* module's CMDU handler with the cmdu_type and the 'msg' payload.
*/
struct
map_module
{
map_module_id_t
uid
;
/**< handle to module object */
uint8_t
sign
[
32
];
uint32_t
role
;
/**< bitmap of MAP_ROLE_* */
enum
map_profile
profile
;
/**< one of MAP_PROFILE_* */
cmdu_handler_t
map_cmdu_rx
;
/**< multiap CMDU handler function */
/* following optional */
int
num_cmdu_types
;
/**< wildcard is '0', meaning all */
uint16_t
cmdutype
[
64
];
/**< present if num_cmdu_types != 0 */
};
int
register_multiap_module
(
struct
map_module
*
module
);
int
unregister_multiap_module
(
struct
map_module
*
module
);
/* The following functions will be called by wifi-agent/wifi-controller to
* start/stop receiving multiap CMDUs from the ieee1905 libmap.so plugin.
*/
int
start_multiap_module
(
struct
map_module
*
m
);
int
stop_multiap_module
(
struct
map_module
*
m
);
/* The ieee1905 multiap plugin ('libmap.so') will implement this function.
* Whenever a multiap module has any CMDU (request/response) to transmit,
* it will call this function.
*/
extern
int
map_cmdu_tx
(
uint16_t
cmdu_type
,
void
*
msg
,
size_t
msglen
);
#ifdef __cplusplus
}
#endif
#endif
/* MAP_MODULE_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