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
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
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