old mode 100644new mode 100755| .. | .. |
|---|
| 157 | 157 | ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_START = 0x1900, |
|---|
| 158 | 158 | ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_END = 0x19FF, |
|---|
| 159 | 159 | |
|---|
| 160 | | - /* define all TWT related commands between 0x2140 and 0x214F */ |
|---|
| 161 | | - ANDROID_NL80211_SUBCMD_TWT_START = 0x2140, |
|---|
| 162 | | - ANDROID_NL80211_SUBCMD_TWT_END = 0x214F, |
|---|
| 163 | | - |
|---|
| 164 | 160 | /* This is reserved for future usage */ |
|---|
| 165 | 161 | |
|---|
| 166 | 162 | } ANDROID_VENDOR_SUB_COMMAND; |
|---|
| .. | .. |
|---|
| 249 | 245 | APF_SUBCMD_GET_CAPABILITIES = ANDROID_NL80211_SUBCMD_PKT_FILTER_RANGE_START, |
|---|
| 250 | 246 | APF_SUBCMD_SET_FILTER, |
|---|
| 251 | 247 | WIFI_SUBCMD_TX_POWER_SCENARIO = ANDROID_NL80211_SUBCMD_TX_POWER_RANGE_START, |
|---|
| 252 | | - |
|---|
| 253 | | - ANDR_TWT_SUBCMD_GET_CAP = ANDROID_NL80211_SUBCMD_TWT_START, |
|---|
| 254 | | - ANDR_TWT_SUBCMD_SETUP, |
|---|
| 255 | | - ANDR_TWT_SUBCMD_TEARDOWN, |
|---|
| 256 | | - ANDR_TWT_SUBCMD_INFO_FRAME, |
|---|
| 257 | | - ANDR_TWT_SUBCMD_GET_STATS, |
|---|
| 258 | | - ANDR_TWT_SUBCMD_CLR_STATS, |
|---|
| 259 | 248 | /* Add more sub commands here */ |
|---|
| 260 | 249 | VENDOR_SUBCMD_MAX |
|---|
| 261 | 250 | }; |
|---|
| .. | .. |
|---|
| 607 | 596 | BRCM_VENDOR_EVENT_CU = 38, |
|---|
| 608 | 597 | BRCM_VENDOR_EVENT_WIPS = 39, |
|---|
| 609 | 598 | NAN_ASYNC_RESPONSE_DISABLED = 40, |
|---|
| 610 | | - BRCM_VENDOR_EVENT_RCC_INFO = 41, |
|---|
| 611 | | - BRCM_VENDOR_EVENT_TWT = 43, |
|---|
| 612 | | - WL_VENDOR_EVENT_LAST |
|---|
| 599 | + BRCM_VENDOR_EVENT_RCC_INFO = 41 |
|---|
| 613 | 600 | } wl_vendor_event_t; |
|---|
| 614 | 601 | |
|---|
| 615 | 602 | enum andr_wifi_attr { |
|---|
| .. | .. |
|---|
| 768 | 755 | /* Add any new HAL_START attribute prior to SET_HAL_START_ATTRIBUTE_MAX */ |
|---|
| 769 | 756 | SET_HAL_START_ATTRIBUTE_MAX |
|---|
| 770 | 757 | } SET_HAL_START_ATTRIBUTE; |
|---|
| 771 | | - |
|---|
| 772 | | -#ifdef WL_TWT |
|---|
| 773 | | -typedef enum { |
|---|
| 774 | | - WIFI_TWT_EVENT_SETUP = 1, |
|---|
| 775 | | - WIFI_TWT_EVENT_TEARDOWN = 2, |
|---|
| 776 | | - WIFI_TWT_EVENT_INFO_FRM = 3, |
|---|
| 777 | | - WIFI_TWT_EVENT_NOTIFY = 4 |
|---|
| 778 | | -} wifi_twt_sub_event; |
|---|
| 779 | | - |
|---|
| 780 | | -typedef enum { |
|---|
| 781 | | - WIFI_TWT_ATTR_NONE = 0, |
|---|
| 782 | | - WIFI_TWT_ATTR_SUB_EVENT = 1, |
|---|
| 783 | | - WIFI_TWT_ATTR_REASON_CODE = 2, |
|---|
| 784 | | - WIFI_TWT_ATTR_STATUS = 3, |
|---|
| 785 | | - WIFI_TWT_ATTR_SETUP_CMD = 4, |
|---|
| 786 | | - WIFI_TWT_ATTR_FLOW_FLAGS = 5, |
|---|
| 787 | | - WIFI_TWT_ATTR_FLOW_ID = 6, |
|---|
| 788 | | - WIFI_TWT_ATTR_CHANNEL = 7, |
|---|
| 789 | | - WIFI_TWT_ATTR_NEGOTIATION_TYPE = 8, |
|---|
| 790 | | - WIFI_TWT_ATTR_WAKETIME_H = 9, |
|---|
| 791 | | - WIFI_TWT_ATTR_WAKETIME_L = 10, |
|---|
| 792 | | - WIFI_TWT_ATTR_WAKE_DURATION = 11, |
|---|
| 793 | | - WIFI_TWT_ATTR_WAKE_INTERVAL = 12, |
|---|
| 794 | | - WIFI_TWT_ATTR_BID = 13, |
|---|
| 795 | | - WIFI_TWT_ATTR_ALLTWT = 14, |
|---|
| 796 | | - WIFI_TWT_ATTR_NEXT_TWT_H = 15, |
|---|
| 797 | | - WIFI_TWT_ATTR_NEXT_TWT_L = 16, |
|---|
| 798 | | - WIFI_TWT_ATTR_CONFIG_ID = 17, |
|---|
| 799 | | - WIFI_TWT_ATTR_NOTIFICATION = 18, |
|---|
| 800 | | - WIFI_TWT_ATTR_FLOW_TYPE = 19, |
|---|
| 801 | | - WIFI_TWT_ATTR_TRIGGER_TYPE = 20, |
|---|
| 802 | | - |
|---|
| 803 | | - WIFI_TWT_ATTR_MAX |
|---|
| 804 | | -} wifi_twt_attribute; |
|---|
| 805 | | -#endif /* WL_TWT */ |
|---|
| 806 | | - |
|---|
| 807 | | -#ifdef WL_TWT_HAL_IF |
|---|
| 808 | | -#define BRCM_TWT_HAL_VENDOR_EVENT_BUF_LEN 500 |
|---|
| 809 | | - |
|---|
| 810 | | -typedef enum { |
|---|
| 811 | | - ANDR_TWT_ATTR_NONE = 0, |
|---|
| 812 | | - ANDR_TWT_ATTR_CONFIG_ID = 1, |
|---|
| 813 | | - ANDR_TWT_ATTR_NEGOTIATION_TYPE = 2, |
|---|
| 814 | | - ANDR_TWT_ATTR_TRIGGER_TYPE = 3, |
|---|
| 815 | | - ANDR_TWT_ATTR_WAKE_DURATION = 4, |
|---|
| 816 | | - ANDR_TWT_ATTR_WAKE_INTERVAL = 5, |
|---|
| 817 | | - ANDR_TWT_ATTR_WAKE_INTERVAL_MIN = 6, |
|---|
| 818 | | - ANDR_TWT_ATTR_WAKE_INTERVAL_MAX = 7, |
|---|
| 819 | | - ANDR_TWT_ATTR_WAKE_DURATION_MIN = 8, |
|---|
| 820 | | - ANDR_TWT_ATTR_WAKE_DURATION_MAX = 9, |
|---|
| 821 | | - ANDR_TWT_ATTR_AVG_PKT_SIZE = 10, |
|---|
| 822 | | - ANDR_TWT_ATTR_AVG_PKT_NUM = 11, |
|---|
| 823 | | - ANDR_TWT_ATTR_WAKETIME_OFFSET = 12, |
|---|
| 824 | | - ANDR_TWT_ATTR_ALL_TWT = 13, |
|---|
| 825 | | - ANDR_TWT_ATTR_RESUME_TIME = 14, |
|---|
| 826 | | - ANDR_TWT_ATTR_AVG_EOSP_DUR = 15, |
|---|
| 827 | | - ANDR_TWT_ATTR_EOSP_CNT = 16, |
|---|
| 828 | | - ANDR_TWT_ATTR_NUM_SP = 17, |
|---|
| 829 | | - ANDR_TWT_ATTR_DEVICE_CAP = 18, |
|---|
| 830 | | - ANDR_TWT_ATTR_PEER_CAP = 19, |
|---|
| 831 | | - ANDR_TWT_ATTR_STATUS = 20, |
|---|
| 832 | | - ANDR_TWT_ATTR_REASON_CODE = 21, |
|---|
| 833 | | - ANDR_TWT_ATTR_TWT_RESUMED = 22, |
|---|
| 834 | | - ANDR_TWT_ATTR_TWT_NOTIFICATION = 23, |
|---|
| 835 | | - ANDR_TWT_ATTR_SUB_EVENT = 24, |
|---|
| 836 | | - ANDR_TWT_ATTR_NUM_PEER_STATS = 25, |
|---|
| 837 | | - ANDR_TWT_ATTR_AVG_PKT_NUM_TX = 26, |
|---|
| 838 | | - ANDR_TWT_ATTR_AVG_PKT_SIZE_TX = 27, |
|---|
| 839 | | - ANDR_TWT_ATTR_AVG_PKT_NUM_RX = 28, |
|---|
| 840 | | - ANDR_TWT_ATTR_AVG_PKT_SIZE_RX = 29, |
|---|
| 841 | | - ANDR_TWT_ATTR_MAX |
|---|
| 842 | | -} andr_twt_attribute; |
|---|
| 843 | | - |
|---|
| 844 | | -typedef enum { |
|---|
| 845 | | - ANDR_TWT_EVENT_SETUP = 1, |
|---|
| 846 | | - ANDR_TWT_EVENT_TEARDOWN = 2, |
|---|
| 847 | | - ANDR_TWT_EVENT_INFO_FRM = 3, |
|---|
| 848 | | - ANDR_TWT_EVENT_NOTIFY = 4 |
|---|
| 849 | | -} andr_twt_sub_event; |
|---|
| 850 | | -#endif /* WL_TWT_HAL_IF */ |
|---|
| 851 | 758 | |
|---|
| 852 | 759 | /* Capture the BRCM_VENDOR_SUBCMD_PRIV_STRINGS* here */ |
|---|
| 853 | 760 | #define BRCM_VENDOR_SCMD_CAPA "cap" |
|---|