mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
qcacld-3.0: Replace MAX_CHANNEL by NUM_CHANNELS
When 6GHz introduced, the MAX channel numbers are conditionally defined by macro NUM_CHANNELS based on 6GHz band supported by driver or not. Change the driver to use the NUM_CHANNELS for channel list operation. Change-Id: I866ac1423b97f9ab74740da263d642f2e3b70445 CRs-Fixed: 2531003
This commit is contained in:
parent
a347938a8b
commit
2eb654f21c
5 changed files with 7 additions and 10 deletions
|
|
@ -35,8 +35,6 @@
|
|||
#include <wlan_reg_services_api.h>
|
||||
#include "wlan_cfg80211_mc_cp_stats.h"
|
||||
|
||||
#define MAX_CHANNEL (NUM_24GHZ_CHANNELS + NUM_5GHZ_CHANNELS)
|
||||
|
||||
|
||||
#define TDLS_MAX_NO_OF_2_4_CHANNELS 14
|
||||
|
||||
|
|
@ -335,8 +333,8 @@ tdls_calc_channels_from_staparams(struct tdls_update_peer_params *req_info,
|
|||
for (i = 0; i < num_unique_channels; i++)
|
||||
osif_debug("[%d]: %d,", i, dest_chans[i]);
|
||||
|
||||
if (MAX_CHANNEL < num_unique_channels)
|
||||
num_unique_channels = MAX_CHANNEL;
|
||||
if (num_unique_channels > NUM_CHANNELS)
|
||||
num_unique_channels = NUM_CHANNELS;
|
||||
req_info->supported_channels_len = num_unique_channels;
|
||||
osif_debug("After removing duplcates supported_channels_len: %d",
|
||||
req_info->supported_channels_len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue