-
Notifications
You must be signed in to change notification settings - Fork 32
[DCS Patch 3/5] port dynamic channel selection from rdkb task #644
[DCS Patch 3/5] port dynamic channel selection from rdkb task #644
Conversation
bc0826a
to
9dbf162
Compare
9dbf162
to
27612c8
Compare
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
// Before sending the request set the scan_in_progress flag to true | ||
// So another scan would not trigger on the same radio simultaneously | ||
|
||
database.set_channel_scan_in_progress(m_radio_mac, true, m_is_single_scan); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we store this in the database? Is it accessed from additional places?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we cannot allow user to trigger chan scan on the same radio in the middle of a already running scan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check if can read task fsm state instead #665
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
391b30c
to
0ce6f74
Compare
ready for re-review: fixed all code review issues. |
@@ -443,6 +447,30 @@ enum eBssType { | |||
BSS_TYPE_INVALID | |||
}; | |||
|
|||
enum class eChannelScanErrCode : uint8_t { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since its an enum class, there is no need to have the CHANNEL_SCAN_
prefix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.h
Outdated
Show resolved
Hide resolved
controller/src/beerocks/master/tasks/dynamic_channel_selection_task.cpp
Outdated
Show resolved
Hide resolved
b4505ea
to
bf27c05
Compare
3738c0b
to
39ac50e
Compare
39ac50e
to
c241cf6
Compare
bcd3280
to
5cc493c
Compare
This is a preparative commit for "DCS task: Events". We need to clear all task events in case of an error that will prevent unnesesary event handling and error log prints. Adding clear_pending_events method to the task base class. Signed-off-by: itay elenzweig <[email protected]>
Intruduction of the dymanic channel selection task. The task is used to control the flow of the DCS feature. Add wait for event method. Add FSM stubs & event handling stubs. Signed-off-by: itay elenzweig <[email protected]>
Implement the FSM stubs in the task. Signed-off-by: itay elenzweig <[email protected]>
Implement event handling in the task. Implement event timeout in the task. Signed-off-by: itay elenzweig <[email protected]>
Add database support for the DCS task (set/get id). Add Node entry for the DCS task ID. Signed-off-by: itay elenzweig <[email protected]>
5cc493c
to
0cc5c42
Compare
The Dynamic Channel Selection feature is divided into several pull request, this is the third out of 5
start review from 676ac83
Dynamic Channel Selection Task:
Changes in this PR include the following: