This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bwl: Add NL DWPAL base implementation
Open nl socket at dwpal init state for each interface. proccess nl events after select. Add stubs and structures for monitor hal. Signed-off-by: alex kanter <[email protected]> Signed-off-by: itay elenzweig <[email protected]>
- Loading branch information
Showing
9 changed files
with
295 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* SPDX-License-Identifier: BSD-2-Clause-Patent | ||
* | ||
* Copyright (c) 2020 Intel Corporation | ||
* | ||
* This code is subject to the terms of the BSD+Patent license. | ||
* See LICENSE file for more details. | ||
*/ | ||
|
||
#ifndef _BWL_MON_WLAN_HAL_DWPAL_TYPES_H_ | ||
#define _BWL_MON_WLAN_HAL_DWPAL_TYPES_H_ | ||
|
||
namespace bwl { | ||
namespace dwpal { | ||
|
||
#define NL_MAX_REPLY_BUFFSIZE 8192 | ||
#define NL_ATTR_HDR 4 | ||
|
||
/** | ||
* @brief channel scan driver configuration parameters. | ||
* | ||
* @param passive_dwell_time time to wait on the channel during passive scans, in ms. | ||
* @param active_dwell_time time to wait on the channel during active scans, in ms. | ||
* @param num_probe_reqs number of probe requests to send for the same SSID. | ||
* @param probe_reqs_interval time in ms, after which to fire the next round of probe requests for the same SSIDs. | ||
* @param passive_scan_valid_time avoid new non-background passive scans of the channel for this time period, in seconds. | ||
* @param active_scan_valid_time avoid new non-background active scans of the channel for this time period, in seconds. | ||
*/ | ||
struct sScanCfgParams { | ||
int passive_dwell_time; | ||
int active_dwell_time; | ||
int num_probe_reqs; | ||
int probe_reqs_interval; | ||
int passive_scan_valid_time; | ||
int active_scan_valid_time; | ||
}; | ||
|
||
/** | ||
* @brief channel scan driver background configuration parameters. | ||
* | ||
* @param passive_dwell_time time to wait on the channel during passive scans, in ms. | ||
* @param active_dwell_time time to wait on the channel during active scans, in ms. | ||
* @param num_probe_reqs number of probe requests to send for the same SSID. | ||
* @param probe_reqs_interval time in ms, after which to fire the next round of probe requests for the same SSIDs. | ||
* @param num_chans_in_chunk number of channels in single scan chunk. | ||
* @param break_time time in ms, background scan break time duration for dfs channels. | ||
* @param break_time_busy busy flag for backround scan break. | ||
*/ | ||
struct sScanCfgParamsBG { | ||
int passive_dwell_time; | ||
int active_dwell_time; | ||
int num_probe_reqs; | ||
int probe_reqs_interval; | ||
int num_chans_in_chunk; | ||
int break_time; | ||
int break_time_busy; | ||
}; | ||
|
||
} // namespace dwpal | ||
} // namespace bwl | ||
|
||
#endif // _BWL_MON_WLAN_HAL_DWPAL_TYPES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters