Commit Graph

5 Commits

Author SHA1 Message Date
Vignesh Mohan
242974d9ff qca-wifi: Add reg channel based checks for NOL and NOL HIST
Add APIs to check:
1) If a channel is RADAR infected
2) nol_history bit is set

Change-Id: I2a3f98a876ceed41e715238b45ca37cbadc261b5
CRs-Fixed: 2841164
2020-12-23 06:23:20 -08:00
Hariharan Basuthkar
5bf6fe272f qca-wifi: Add a new API to check band capability
Add a new API wlan_reg_is_band_present to check band capability
by taking band as input and return true if a band channel is found, else
return false.

Change-Id: I4fb3b79d8327307ac15b8a656689c0186fdf063b
CRs-Fixed: 2828765
2020-12-23 19:05:24 +05:30
Vignesh Mohan
c491be826b qca-wifi: Use pdev instead of regulatory private object
Use pdev pointer instead of regulatory private object in
regulatory APIs that are defined in the common services.

Also check if the channel is in NOL/NOL History and do not
consider them disabled if true, while checking if the channel
supports a phymode-chwidth combination.

Change-Id: I55c40afc5a0c7469956c666ae9fd3ed283f456bc
2020-12-23 03:12:57 -08:00
Hariharan Basuthkar
67b1ed5682 qca-wifi: Add regulatory APIs for REGULATORY_CHAN_BLOCKED
Add regulatory APIs to check, set and clear the flag
REGULATORY_CHAN_BLOCKED.

Change-Id: If049526fd788747575b24b3aa5aaa84c7b1d6fb9
CRs-Fixed: 2837859
2020-12-20 23:21:08 -08:00
Vignesh Mohan
a9b8585838 qca-wifi: Introduce regulatory APIs to access channel information
As part of the componentization of channel lists across WIN
components, the existing version of channel list in WIN umac is
removed. Introduce APIs in the regulatory that provide the
required information directly from the regulatory
channel lists.

Introduce the following APIs:
1. wlan_reg_get_txpow_ant_gain
    To get the txpower and antenna gain specified in the regulatory,
    for a given channel.
2. wlan_reg_get_chan_flags
    To get the channel flags (if channel DFS for example), from
    regulatory for the given channel.
3. wlan_reg_get_max_phymode_and_chwidth
    To get the maximum 80211 mode and channel width supported
    by the channel in the given regulatory.
4. wlan_reg_is_phymode_chwidth_allowed
    To check if the given 80211 mode and channel width is supported
    by the channel in the given regulatory.
5. reg_update_max_phymode_chwidth_for_pdev
    To update the maximum 80211 mode and channel width for the
    regulatory, inside regulatory object.
6. reg_modify_chan_list_for_max_chwidth
    Update the regulatory channel list with maximum bandwidth
    for each channel based on the availability of it's
    adjacent channels.

Change-Id: Idb390c10d8901d9e21d4642481168704d7e36333
2020-11-26 14:37:59 +05:30