diff options
| author | Amar Singhal <asinghal@qca.qualcomm.com> | 2014-09-19 17:36:47 -0700 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-09-23 19:52:26 +0530 |
| commit | 41bb87e1278bed627b3e4fa2d02e3f7db170c14c (patch) | |
| tree | eb41cc6456da34bd671afd1ff341544a03a9d442 | |
| parent | c1a0116cd664da880934ef940e3eb086ac13ea46 (diff) | |
qcacld: Add channel DFS info in channel info response
Send the Channel mode, whether DFs or not in the response.
Change-Id: If7e7522aa6b820184125ea840f4bb80f7e5c5fbb
CRs-Fixed: 727383
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_oemdata.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CORE/HDD/src/wlan_hdd_oemdata.c b/CORE/HDD/src/wlan_hdd_oemdata.c index e8b5f1e615d0..516f5a6da85a 100644 --- a/CORE/HDD/src/wlan_hdd_oemdata.c +++ b/CORE/HDD/src/wlan_hdd_oemdata.c @@ -45,6 +45,7 @@ #include <net/arp.h> #include "qwlan_version.h" #include "vos_utils.h" +#include "wma.h" static struct hdd_context_s *pHddCtx; @@ -705,16 +706,23 @@ int oem_process_channel_info_req_msg(int numOfChannels, char *chanList) ®_info_1, ®_info_2); if (eHAL_STATUS_SUCCESS == status) { - /* band center freq1, 2 and info depends on peer's capability + /* band center freq1, and freq2 depends on peer's capability * and at this time we might not be associated on the given channel, - * so fill freq1=mhz, freq2=0 and info = 0 + * so fill freq1=mhz, and freq2=0 */ hddChanInfo.chan_id = chanId; hddChanInfo.reserved0 = 0; hddChanInfo.mhz = vos_chan_to_freq(chanId); hddChanInfo.band_center_freq1 = hddChanInfo.mhz; hddChanInfo.band_center_freq2 = 0; + + /* set only DFS flag in info, rest of the fields will be filled in + * by the OEM App + */ hddChanInfo.info = 0; + if (NV_CHANNEL_DFS == vos_nv_getChannelEnabledState(chanId)) + WMI_SET_CHANNEL_FLAG(&hddChanInfo, WMI_CHAN_FLAG_DFS); + hddChanInfo.reg_info_1 = reg_info_1; hddChanInfo.reg_info_2 = reg_info_2; } |
