From da525ac7a3e843c9d5d77afc08ebd68c02db0587 Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Mon, 6 Feb 2017 14:17:46 -0800 Subject: [PATCH] qcacmn: send channel info to cnss daemon Update wlan nlink message header file with channel info. These info will be sent to cnss daemon and daemon will pass it to LOWI client. CRs-Fixed: 2006217 Change-Id: I125a519e188774bb099058ad5c385787800e5411 --- utils/nlink/inc/wlan_nlink_common.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/utils/nlink/inc/wlan_nlink_common.h b/utils/nlink/inc/wlan_nlink_common.h index 8d3d4e7afc6b..724f2446be9f 100644 --- a/utils/nlink/inc/wlan_nlink_common.h +++ b/utils/nlink/inc/wlan_nlink_common.h @@ -48,7 +48,7 @@ /*--------------------------------------------------------------------------- * Preprocessor Definitions and Constants *-------------------------------------------------------------------------*/ -#define WLAN_NL_MAX_PAYLOAD 256 /* maximum size for netlink message */ +#define WLAN_NL_MAX_PAYLOAD 5120 /* maximum size for netlink message */ #define WLAN_NLINK_PROTO_FAMILY NETLINK_USERSOCK #define WLAN_NLINK_MCAST_GRP_ID 0x01 @@ -125,6 +125,29 @@ struct radio_index_tlv { int radio; }; +/** + * struct svc_channel_info - Channel information + * @chan_id: Channel ID + * @reserved0: Reserved for padding and future use + * @mhz: Primary 20 MHz channel frequency in MHz + * @band_center_freq1: Center frequency 1 in MHz + * @band_center_freq2: Center frequency 2 in MHz + * @info: Channel info + * @reg_info_1: Regulatory information field 1 which contains + * MIN power, MAX power, reg power and reg class ID + * @reg_info_2: Regulatory information field 2 which contains antennamax + */ +struct svc_channel_info { + uint32_t chan_id; + uint32_t reserved0; + uint32_t mhz; + uint32_t band_center_freq1; + uint32_t band_center_freq2; + uint32_t info; + uint32_t reg_info_1; + uint32_t reg_info_2; +}; + struct wlan_status_data { uint8_t lpss_support; uint8_t is_on; @@ -139,6 +162,7 @@ struct wlan_status_data { uint8_t channel_list[WLAN_SVC_MAX_NUM_CHAN]; uint8_t ssid[WLAN_SVC_MAX_SSID_LEN]; uint8_t bssid[WLAN_SVC_MAX_BSSID_LEN]; + struct svc_channel_info channel_info[WLAN_SVC_MAX_NUM_CHAN]; }; struct wlan_version_data {