summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspuligil <spuligil@codeaurora.org>2019-07-27 12:00:35 -0700
committerspuligil <spuligil@codeaurora.org>2019-07-27 12:00:35 -0700
commit459c3a79ced7fba8e7b36ca985f27d216456e657 (patch)
treeed72bc959b272d2289f65c6e822ad631557ee07d
parent47ce4fa6151833ba23fcb9543c541a67748cf493 (diff)
fw-api: CL 7732862 - update fw common interface files
Change-Id: I144668bbb867baec2913d5a6384f65f9949bec7c WMI: add max bandwidth bitfield within wmi_channel struct CRs-Fixed: 2262693
-rwxr-xr-xfw/wmi_unified.h9
-rwxr-xr-xfw/wmi_version.h2
2 files changed, 9 insertions, 2 deletions
diff --git a/fw/wmi_unified.h b/fw/wmi_unified.h
index 5f6dc5ae7cf6..1186b59fd5a4 100755
--- a/fw/wmi_unified.h
+++ b/fw/wmi_unified.h
@@ -1907,7 +1907,7 @@ typedef struct {
A_UINT32 info;
/** contains min power, max power, reg power and reg class id. */
A_UINT32 reg_info_1;
- /** contains antennamax */
+ /** contains antennamax, max bandwidth */
A_UINT32 reg_info_2;
} wmi_channel;
@@ -1981,6 +1981,12 @@ typedef enum {
} while (0)
#define WMI_GET_CHANNEL_MAX_TX_POWER(pwmi_channel) ((((pwmi_channel)->reg_info_2)>>8) & 0xff)
+/* max bw supported for each channel, enum wmi_channel_width as value */
+#define WMI_SET_CHANNEL_MAX_BANDWIDTH(pwmi_channel,val) do { \
+ (pwmi_channel)->reg_info_2 &= 0xff00ffff; \
+ (pwmi_channel)->reg_info_2 |= ((val & 0xff) << 16); \
+ } while (0)
+#define WMI_GET_CHANNEL_MAX_BANDWIDTH(pwmi_channel) ((((pwmi_channel)->reg_info_2) >> 16) & 0xff)
/** HT Capabilities*/
#define WMI_HT_CAP_ENABLED 0x0001 /* HT Enabled/ disabled */
@@ -3849,6 +3855,7 @@ typedef struct {
#define MAX_NUM_CHAN_PER_WMI_CMD 58 /* each WMI cmd can hold 58 channel entries at most */
#define APPEND_TO_EXISTING_CHAN_LIST 1
+#define CHANNEL_MAX_BANDWIDTH_VALID 2
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_chan_list_cmd_fixed_param */
diff --git a/fw/wmi_version.h b/fw/wmi_version.h
index e33a2dae56e5..f17c1a03d430 100755
--- a/fw/wmi_version.h
+++ b/fw/wmi_version.h
@@ -36,7 +36,7 @@
#define __WMI_VER_MINOR_ 0
/** WMI revision number has to be incremented when there is a
* change that may or may not break compatibility. */
-#define __WMI_REVISION_ 701
+#define __WMI_REVISION_ 702
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work