1 #ifndef __LINUX_NL80211_H
2 #define __LINUX_NL80211_H
40 #include <linux/types.h>
42 #define NL80211_GENL_NAME "nl80211"
44 #define NL80211_MULTICAST_GROUP_CONFIG "config"
45 #define NL80211_MULTICAST_GROUP_SCAN "scan"
46 #define NL80211_MULTICAST_GROUP_REG "regulatory"
47 #define NL80211_MULTICAST_GROUP_MLME "mlme"
48 #define NL80211_MULTICAST_GROUP_VENDOR "vendor"
49 #define NL80211_MULTICAST_GROUP_TESTMODE "testmode"
817 enum nl80211_commands {
821 NL80211_CMD_GET_WIPHY,
822 NL80211_CMD_SET_WIPHY,
823 NL80211_CMD_NEW_WIPHY,
824 NL80211_CMD_DEL_WIPHY,
826 NL80211_CMD_GET_INTERFACE,
827 NL80211_CMD_SET_INTERFACE,
828 NL80211_CMD_NEW_INTERFACE,
829 NL80211_CMD_DEL_INTERFACE,
836 NL80211_CMD_GET_BEACON,
837 NL80211_CMD_SET_BEACON,
838 NL80211_CMD_START_AP,
839 NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP,
841 NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP,
843 NL80211_CMD_GET_STATION,
844 NL80211_CMD_SET_STATION,
845 NL80211_CMD_NEW_STATION,
846 NL80211_CMD_DEL_STATION,
848 NL80211_CMD_GET_MPATH,
849 NL80211_CMD_SET_MPATH,
850 NL80211_CMD_NEW_MPATH,
851 NL80211_CMD_DEL_MPATH,
856 NL80211_CMD_REQ_SET_REG,
858 NL80211_CMD_GET_MESH_CONFIG,
859 NL80211_CMD_SET_MESH_CONFIG,
861 NL80211_CMD_SET_MGMT_EXTRA_IE ,
865 NL80211_CMD_GET_SCAN,
866 NL80211_CMD_TRIGGER_SCAN,
867 NL80211_CMD_NEW_SCAN_RESULTS,
868 NL80211_CMD_SCAN_ABORTED,
870 NL80211_CMD_REG_CHANGE,
872 NL80211_CMD_AUTHENTICATE,
873 NL80211_CMD_ASSOCIATE,
874 NL80211_CMD_DEAUTHENTICATE,
875 NL80211_CMD_DISASSOCIATE,
877 NL80211_CMD_MICHAEL_MIC_FAILURE,
879 NL80211_CMD_REG_BEACON_HINT,
881 NL80211_CMD_JOIN_IBSS,
882 NL80211_CMD_LEAVE_IBSS,
884 NL80211_CMD_TESTMODE,
888 NL80211_CMD_DISCONNECT,
890 NL80211_CMD_SET_WIPHY_NETNS,
892 NL80211_CMD_GET_SURVEY,
893 NL80211_CMD_NEW_SURVEY_RESULTS,
895 NL80211_CMD_SET_PMKSA,
896 NL80211_CMD_DEL_PMKSA,
897 NL80211_CMD_FLUSH_PMKSA,
899 NL80211_CMD_REMAIN_ON_CHANNEL,
900 NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL,
902 NL80211_CMD_SET_TX_BITRATE_MASK,
904 NL80211_CMD_REGISTER_FRAME,
905 NL80211_CMD_REGISTER_ACTION = NL80211_CMD_REGISTER_FRAME,
907 NL80211_CMD_ACTION = NL80211_CMD_FRAME,
908 NL80211_CMD_FRAME_TX_STATUS,
909 NL80211_CMD_ACTION_TX_STATUS = NL80211_CMD_FRAME_TX_STATUS,
911 NL80211_CMD_SET_POWER_SAVE,
912 NL80211_CMD_GET_POWER_SAVE,
915 NL80211_CMD_NOTIFY_CQM,
917 NL80211_CMD_SET_CHANNEL,
918 NL80211_CMD_SET_WDS_PEER,
920 NL80211_CMD_FRAME_WAIT_CANCEL,
922 NL80211_CMD_JOIN_MESH,
923 NL80211_CMD_LEAVE_MESH,
925 NL80211_CMD_UNPROT_DEAUTHENTICATE,
926 NL80211_CMD_UNPROT_DISASSOCIATE,
928 NL80211_CMD_NEW_PEER_CANDIDATE,
930 NL80211_CMD_GET_WOWLAN,
931 NL80211_CMD_SET_WOWLAN,
933 NL80211_CMD_START_SCHED_SCAN,
934 NL80211_CMD_STOP_SCHED_SCAN,
935 NL80211_CMD_SCHED_SCAN_RESULTS,
936 NL80211_CMD_SCHED_SCAN_STOPPED,
938 NL80211_CMD_SET_REKEY_OFFLOAD,
940 NL80211_CMD_PMKSA_CANDIDATE,
942 NL80211_CMD_TDLS_OPER,
943 NL80211_CMD_TDLS_MGMT,
945 NL80211_CMD_UNEXPECTED_FRAME,
947 NL80211_CMD_PROBE_CLIENT,
949 NL80211_CMD_REGISTER_BEACONS,
951 NL80211_CMD_UNEXPECTED_4ADDR_FRAME,
953 NL80211_CMD_SET_NOACK_MAP,
955 NL80211_CMD_CH_SWITCH_NOTIFY,
957 NL80211_CMD_START_P2P_DEVICE,
958 NL80211_CMD_STOP_P2P_DEVICE,
960 NL80211_CMD_CONN_FAILED,
962 NL80211_CMD_SET_MCAST_RATE,
964 NL80211_CMD_SET_MAC_ACL,
966 NL80211_CMD_RADAR_DETECT,
968 NL80211_CMD_GET_PROTOCOL_FEATURES,
970 NL80211_CMD_UPDATE_FT_IES,
971 NL80211_CMD_FT_EVENT,
973 NL80211_CMD_CRIT_PROTOCOL_START,
974 NL80211_CMD_CRIT_PROTOCOL_STOP,
976 NL80211_CMD_GET_COALESCE,
977 NL80211_CMD_SET_COALESCE,
979 NL80211_CMD_CHANNEL_SWITCH,
983 NL80211_CMD_SET_QOS_MAP,
985 NL80211_CMD_ADD_TX_TS,
986 NL80211_CMD_DEL_TX_TS,
990 NL80211_CMD_JOIN_OCB,
991 NL80211_CMD_LEAVE_OCB,
993 NL80211_CMD_CH_SWITCH_STARTED_NOTIFY,
995 NL80211_CMD_TDLS_CHANNEL_SWITCH,
996 NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH,
998 NL80211_CMD_WIPHY_REG_CHANGE,
1003 __NL80211_CMD_AFTER_LAST,
1004 NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1
1011 #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS
1012 #define NL80211_CMD_SET_MGMT_EXTRA_IE NL80211_CMD_SET_MGMT_EXTRA_IE
1013 #define NL80211_CMD_REG_CHANGE NL80211_CMD_REG_CHANGE
1014 #define NL80211_CMD_AUTHENTICATE NL80211_CMD_AUTHENTICATE
1015 #define NL80211_CMD_ASSOCIATE NL80211_CMD_ASSOCIATE
1016 #define NL80211_CMD_DEAUTHENTICATE NL80211_CMD_DEAUTHENTICATE
1017 #define NL80211_CMD_DISASSOCIATE NL80211_CMD_DISASSOCIATE
1018 #define NL80211_CMD_REG_BEACON_HINT NL80211_CMD_REG_BEACON_HINT
1020 #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
1023 #define NL80211_CMD_GET_MESH_PARAMS NL80211_CMD_GET_MESH_CONFIG
1024 #define NL80211_CMD_SET_MESH_PARAMS NL80211_CMD_SET_MESH_CONFIG
1025 #define NL80211_MESH_SETUP_VENDOR_PATH_SEL_IE NL80211_MESH_SETUP_IE
1768 enum nl80211_attrs {
1770 NL80211_ATTR_UNSPEC,
1773 NL80211_ATTR_WIPHY_NAME,
1775 NL80211_ATTR_IFINDEX,
1776 NL80211_ATTR_IFNAME,
1777 NL80211_ATTR_IFTYPE,
1781 NL80211_ATTR_KEY_DATA,
1782 NL80211_ATTR_KEY_IDX,
1783 NL80211_ATTR_KEY_CIPHER,
1784 NL80211_ATTR_KEY_SEQ,
1785 NL80211_ATTR_KEY_DEFAULT,
1787 NL80211_ATTR_BEACON_INTERVAL,
1788 NL80211_ATTR_DTIM_PERIOD,
1789 NL80211_ATTR_BEACON_HEAD,
1790 NL80211_ATTR_BEACON_TAIL,
1792 NL80211_ATTR_STA_AID,
1793 NL80211_ATTR_STA_FLAGS,
1794 NL80211_ATTR_STA_LISTEN_INTERVAL,
1795 NL80211_ATTR_STA_SUPPORTED_RATES,
1796 NL80211_ATTR_STA_VLAN,
1797 NL80211_ATTR_STA_INFO,
1799 NL80211_ATTR_WIPHY_BANDS,
1801 NL80211_ATTR_MNTR_FLAGS,
1803 NL80211_ATTR_MESH_ID,
1804 NL80211_ATTR_STA_PLINK_ACTION,
1805 NL80211_ATTR_MPATH_NEXT_HOP,
1806 NL80211_ATTR_MPATH_INFO,
1808 NL80211_ATTR_BSS_CTS_PROT,
1809 NL80211_ATTR_BSS_SHORT_PREAMBLE,
1810 NL80211_ATTR_BSS_SHORT_SLOT_TIME,
1812 NL80211_ATTR_HT_CAPABILITY,
1814 NL80211_ATTR_SUPPORTED_IFTYPES,
1816 NL80211_ATTR_REG_ALPHA2,
1817 NL80211_ATTR_REG_RULES,
1819 NL80211_ATTR_MESH_CONFIG,
1821 NL80211_ATTR_BSS_BASIC_RATES,
1823 NL80211_ATTR_WIPHY_TXQ_PARAMS,
1824 NL80211_ATTR_WIPHY_FREQ,
1825 NL80211_ATTR_WIPHY_CHANNEL_TYPE,
1827 NL80211_ATTR_KEY_DEFAULT_MGMT,
1829 NL80211_ATTR_MGMT_SUBTYPE,
1832 NL80211_ATTR_MAX_NUM_SCAN_SSIDS,
1834 NL80211_ATTR_SCAN_FREQUENCIES,
1835 NL80211_ATTR_SCAN_SSIDS,
1836 NL80211_ATTR_GENERATION,
1839 NL80211_ATTR_REG_INITIATOR,
1840 NL80211_ATTR_REG_TYPE,
1842 NL80211_ATTR_SUPPORTED_COMMANDS,
1846 NL80211_ATTR_AUTH_TYPE,
1847 NL80211_ATTR_REASON_CODE,
1849 NL80211_ATTR_KEY_TYPE,
1851 NL80211_ATTR_MAX_SCAN_IE_LEN,
1852 NL80211_ATTR_CIPHER_SUITES,
1854 NL80211_ATTR_FREQ_BEFORE,
1855 NL80211_ATTR_FREQ_AFTER,
1857 NL80211_ATTR_FREQ_FIXED,
1860 NL80211_ATTR_WIPHY_RETRY_SHORT,
1861 NL80211_ATTR_WIPHY_RETRY_LONG,
1862 NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
1863 NL80211_ATTR_WIPHY_RTS_THRESHOLD,
1865 NL80211_ATTR_TIMED_OUT,
1867 NL80211_ATTR_USE_MFP,
1869 NL80211_ATTR_STA_FLAGS2,
1871 NL80211_ATTR_CONTROL_PORT,
1873 NL80211_ATTR_TESTDATA,
1875 NL80211_ATTR_PRIVACY,
1877 NL80211_ATTR_DISCONNECTED_BY_AP,
1878 NL80211_ATTR_STATUS_CODE,
1880 NL80211_ATTR_CIPHER_SUITES_PAIRWISE,
1881 NL80211_ATTR_CIPHER_SUITE_GROUP,
1882 NL80211_ATTR_WPA_VERSIONS,
1883 NL80211_ATTR_AKM_SUITES,
1885 NL80211_ATTR_REQ_IE,
1886 NL80211_ATTR_RESP_IE,
1888 NL80211_ATTR_PREV_BSSID,
1897 NL80211_ATTR_SURVEY_INFO,
1900 NL80211_ATTR_MAX_NUM_PMKIDS,
1902 NL80211_ATTR_DURATION,
1904 NL80211_ATTR_COOKIE,
1906 NL80211_ATTR_WIPHY_COVERAGE_CLASS,
1908 NL80211_ATTR_TX_RATES,
1910 NL80211_ATTR_FRAME_MATCH,
1914 NL80211_ATTR_PS_STATE,
1918 NL80211_ATTR_LOCAL_STATE_CHANGE,
1920 NL80211_ATTR_AP_ISOLATE,
1922 NL80211_ATTR_WIPHY_TX_POWER_SETTING,
1923 NL80211_ATTR_WIPHY_TX_POWER_LEVEL,
1925 NL80211_ATTR_TX_FRAME_TYPES,
1926 NL80211_ATTR_RX_FRAME_TYPES,
1927 NL80211_ATTR_FRAME_TYPE,
1929 NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
1930 NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,
1932 NL80211_ATTR_SUPPORT_IBSS_RSN,
1934 NL80211_ATTR_WIPHY_ANTENNA_TX,
1935 NL80211_ATTR_WIPHY_ANTENNA_RX,
1937 NL80211_ATTR_MCAST_RATE,
1939 NL80211_ATTR_OFFCHANNEL_TX_OK,
1941 NL80211_ATTR_BSS_HT_OPMODE,
1943 NL80211_ATTR_KEY_DEFAULT_TYPES,
1945 NL80211_ATTR_MAX_REMAIN_ON_CHANNEL_DURATION,
1947 NL80211_ATTR_MESH_SETUP,
1949 NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX,
1950 NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX,
1952 NL80211_ATTR_SUPPORT_MESH_AUTH,
1953 NL80211_ATTR_STA_PLINK_STATE,
1955 NL80211_ATTR_WOWLAN_TRIGGERS,
1956 NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED,
1958 NL80211_ATTR_SCHED_SCAN_INTERVAL,
1960 NL80211_ATTR_INTERFACE_COMBINATIONS,
1961 NL80211_ATTR_SOFTWARE_IFTYPES,
1963 NL80211_ATTR_REKEY_DATA,
1965 NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS,
1966 NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN,
1968 NL80211_ATTR_SCAN_SUPP_RATES,
1970 NL80211_ATTR_HIDDEN_SSID,
1972 NL80211_ATTR_IE_PROBE_RESP,
1973 NL80211_ATTR_IE_ASSOC_RESP,
1975 NL80211_ATTR_STA_WME,
1976 NL80211_ATTR_SUPPORT_AP_UAPSD,
1978 NL80211_ATTR_ROAM_SUPPORT,
1980 NL80211_ATTR_SCHED_SCAN_MATCH,
1981 NL80211_ATTR_MAX_MATCH_SETS,
1983 NL80211_ATTR_PMKSA_CANDIDATE,
1985 NL80211_ATTR_TX_NO_CCK_RATE,
1987 NL80211_ATTR_TDLS_ACTION,
1988 NL80211_ATTR_TDLS_DIALOG_TOKEN,
1989 NL80211_ATTR_TDLS_OPERATION,
1990 NL80211_ATTR_TDLS_SUPPORT,
1991 NL80211_ATTR_TDLS_EXTERNAL_SETUP,
1993 NL80211_ATTR_DEVICE_AP_SME,
1995 NL80211_ATTR_DONT_WAIT_FOR_ACK,
1997 NL80211_ATTR_FEATURE_FLAGS,
1999 NL80211_ATTR_PROBE_RESP_OFFLOAD,
2001 NL80211_ATTR_PROBE_RESP,
2003 NL80211_ATTR_DFS_REGION,
2005 NL80211_ATTR_DISABLE_HT,
2006 NL80211_ATTR_HT_CAPABILITY_MASK,
2008 NL80211_ATTR_NOACK_MAP,
2010 NL80211_ATTR_INACTIVITY_TIMEOUT,
2012 NL80211_ATTR_RX_SIGNAL_DBM,
2014 NL80211_ATTR_BG_SCAN_PERIOD,
2018 NL80211_ATTR_USER_REG_HINT_TYPE,
2020 NL80211_ATTR_CONN_FAILED_REASON,
2022 NL80211_ATTR_SAE_DATA,
2024 NL80211_ATTR_VHT_CAPABILITY,
2026 NL80211_ATTR_SCAN_FLAGS,
2028 NL80211_ATTR_CHANNEL_WIDTH,
2029 NL80211_ATTR_CENTER_FREQ1,
2030 NL80211_ATTR_CENTER_FREQ2,
2032 NL80211_ATTR_P2P_CTWINDOW,
2033 NL80211_ATTR_P2P_OPPPS,
2035 NL80211_ATTR_LOCAL_MESH_POWER_MODE,
2037 NL80211_ATTR_ACL_POLICY,
2039 NL80211_ATTR_MAC_ADDRS,
2041 NL80211_ATTR_MAC_ACL_MAX,
2043 NL80211_ATTR_RADAR_EVENT,
2045 NL80211_ATTR_EXT_CAPA,
2046 NL80211_ATTR_EXT_CAPA_MASK,
2048 NL80211_ATTR_STA_CAPABILITY,
2049 NL80211_ATTR_STA_EXT_CAPABILITY,
2051 NL80211_ATTR_PROTOCOL_FEATURES,
2052 NL80211_ATTR_SPLIT_WIPHY_DUMP,
2054 NL80211_ATTR_DISABLE_VHT,
2055 NL80211_ATTR_VHT_CAPABILITY_MASK,
2058 NL80211_ATTR_IE_RIC,
2060 NL80211_ATTR_CRIT_PROT_ID,
2061 NL80211_ATTR_MAX_CRIT_PROT_DURATION,
2063 NL80211_ATTR_PEER_AID,
2065 NL80211_ATTR_COALESCE_RULE,
2067 NL80211_ATTR_CH_SWITCH_COUNT,
2068 NL80211_ATTR_CH_SWITCH_BLOCK_TX,
2069 NL80211_ATTR_CSA_IES,
2070 NL80211_ATTR_CSA_C_OFF_BEACON,
2071 NL80211_ATTR_CSA_C_OFF_PRESP,
2073 NL80211_ATTR_RXMGMT_FLAGS,
2075 NL80211_ATTR_STA_SUPPORTED_CHANNELS,
2077 NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES,
2079 NL80211_ATTR_HANDLE_DFS,
2081 NL80211_ATTR_SUPPORT_5_MHZ,
2082 NL80211_ATTR_SUPPORT_10_MHZ,
2084 NL80211_ATTR_OPMODE_NOTIF,
2086 NL80211_ATTR_VENDOR_ID,
2087 NL80211_ATTR_VENDOR_SUBCMD,
2088 NL80211_ATTR_VENDOR_DATA,
2089 NL80211_ATTR_VENDOR_EVENTS,
2091 NL80211_ATTR_QOS_MAP,
2093 NL80211_ATTR_MAC_HINT,
2094 NL80211_ATTR_WIPHY_FREQ_HINT,
2096 NL80211_ATTR_MAX_AP_ASSOC_STA,
2098 NL80211_ATTR_TDLS_PEER_CAPABILITY,
2100 NL80211_ATTR_SOCKET_OWNER,
2102 NL80211_ATTR_CSA_C_OFFSETS_TX,
2103 NL80211_ATTR_MAX_CSA_COUNTERS,
2105 NL80211_ATTR_TDLS_INITIATOR,
2107 NL80211_ATTR_USE_RRM,
2109 NL80211_ATTR_WIPHY_DYN_ACK,
2112 NL80211_ATTR_USER_PRIO,
2113 NL80211_ATTR_ADMITTED_TIME,
2115 NL80211_ATTR_SMPS_MODE,
2117 NL80211_ATTR_OPER_CLASS,
2119 NL80211_ATTR_MAC_MASK,
2121 NL80211_ATTR_WIPHY_SELF_MANAGED_REG,
2123 NL80211_ATTR_EXT_FEATURES,
2125 NL80211_ATTR_SURVEY_RADIO_STATS,
2127 NL80211_ATTR_NETNS_FD,
2129 NL80211_ATTR_SCHED_SCAN_DELAY,
2131 NL80211_ATTR_REG_INDOOR,
2135 __NL80211_ATTR_AFTER_LAST,
2136 NUM_NL80211_ATTR = __NL80211_ATTR_AFTER_LAST,
2137 NL80211_ATTR_MAX = __NL80211_ATTR_AFTER_LAST - 1
2141 #define NL80211_ATTR_SCAN_GENERATION NL80211_ATTR_GENERATION
2142 #define NL80211_ATTR_MESH_PARAMS NL80211_ATTR_MESH_CONFIG
2143 #define NL80211_ATTR_IFACE_SOCKET_OWNER NL80211_ATTR_SOCKET_OWNER
2149 #define NL80211_CMD_CONNECT NL80211_CMD_CONNECT
2150 #define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
2151 #define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
2152 #define NL80211_ATTR_WIPHY_TXQ_PARAMS NL80211_ATTR_WIPHY_TXQ_PARAMS
2153 #define NL80211_ATTR_WIPHY_FREQ NL80211_ATTR_WIPHY_FREQ
2154 #define NL80211_ATTR_WIPHY_CHANNEL_TYPE NL80211_ATTR_WIPHY_CHANNEL_TYPE
2155 #define NL80211_ATTR_MGMT_SUBTYPE NL80211_ATTR_MGMT_SUBTYPE
2156 #define NL80211_ATTR_IE NL80211_ATTR_IE
2157 #define NL80211_ATTR_REG_INITIATOR NL80211_ATTR_REG_INITIATOR
2158 #define NL80211_ATTR_REG_TYPE NL80211_ATTR_REG_TYPE
2159 #define NL80211_ATTR_FRAME NL80211_ATTR_FRAME
2160 #define NL80211_ATTR_SSID NL80211_ATTR_SSID
2161 #define NL80211_ATTR_AUTH_TYPE NL80211_ATTR_AUTH_TYPE
2162 #define NL80211_ATTR_REASON_CODE NL80211_ATTR_REASON_CODE
2163 #define NL80211_ATTR_CIPHER_SUITES_PAIRWISE NL80211_ATTR_CIPHER_SUITES_PAIRWISE
2164 #define NL80211_ATTR_CIPHER_SUITE_GROUP NL80211_ATTR_CIPHER_SUITE_GROUP
2165 #define NL80211_ATTR_WPA_VERSIONS NL80211_ATTR_WPA_VERSIONS
2166 #define NL80211_ATTR_AKM_SUITES NL80211_ATTR_AKM_SUITES
2167 #define NL80211_ATTR_KEY NL80211_ATTR_KEY
2168 #define NL80211_ATTR_KEYS NL80211_ATTR_KEYS
2169 #define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS
2171 #define NL80211_MAX_SUPP_RATES 32
2172 #define NL80211_MAX_SUPP_HT_RATES 77
2173 #define NL80211_MAX_SUPP_REG_RULES 64
2174 #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0
2175 #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16
2176 #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24
2177 #define NL80211_HT_CAPABILITY_LEN 26
2178 #define NL80211_VHT_CAPABILITY_LEN 12
2180 #define NL80211_MAX_NR_CIPHER_SUITES 5
2181 #define NL80211_MAX_NR_AKM_SUITES 2
2183 #define NL80211_MIN_REMAIN_ON_CHANNEL_TIME 10
2186 #define NL80211_SCAN_RSSI_THOLD_OFF -300
2188 #define NL80211_CQM_TXE_MAX_INTVL 1800
2219 enum nl80211_iftype {
2220 NL80211_IFTYPE_UNSPECIFIED,
2221 NL80211_IFTYPE_ADHOC,
2222 NL80211_IFTYPE_STATION,
2224 NL80211_IFTYPE_AP_VLAN,
2226 NL80211_IFTYPE_MONITOR,
2227 NL80211_IFTYPE_MESH_POINT,
2228 NL80211_IFTYPE_P2P_CLIENT,
2229 NL80211_IFTYPE_P2P_GO,
2230 NL80211_IFTYPE_P2P_DEVICE,
2234 NUM_NL80211_IFTYPES,
2235 NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
2263 enum nl80211_sta_flags {
2264 __NL80211_STA_FLAG_INVALID,
2265 NL80211_STA_FLAG_AUTHORIZED,
2266 NL80211_STA_FLAG_SHORT_PREAMBLE,
2267 NL80211_STA_FLAG_WME,
2268 NL80211_STA_FLAG_MFP,
2269 NL80211_STA_FLAG_AUTHENTICATED,
2270 NL80211_STA_FLAG_TDLS_PEER,
2271 NL80211_STA_FLAG_ASSOCIATED,
2274 __NL80211_STA_FLAG_AFTER_LAST,
2275 NL80211_STA_FLAG_MAX = __NL80211_STA_FLAG_AFTER_LAST - 1
2278 #define NL80211_STA_FLAG_MAX_OLD_API NL80211_STA_FLAG_TDLS_PEER
2290 } __attribute__((packed));
2327 enum nl80211_rate_info {
2328 __NL80211_RATE_INFO_INVALID,
2329 NL80211_RATE_INFO_BITRATE,
2330 NL80211_RATE_INFO_MCS,
2331 NL80211_RATE_INFO_40_MHZ_WIDTH,
2332 NL80211_RATE_INFO_SHORT_GI,
2333 NL80211_RATE_INFO_BITRATE32,
2334 NL80211_RATE_INFO_VHT_MCS,
2335 NL80211_RATE_INFO_VHT_NSS,
2336 NL80211_RATE_INFO_80_MHZ_WIDTH,
2337 NL80211_RATE_INFO_80P80_MHZ_WIDTH,
2338 NL80211_RATE_INFO_160_MHZ_WIDTH,
2339 NL80211_RATE_INFO_10_MHZ_WIDTH,
2340 NL80211_RATE_INFO_5_MHZ_WIDTH,
2343 __NL80211_RATE_INFO_AFTER_LAST,
2344 NL80211_RATE_INFO_MAX = __NL80211_RATE_INFO_AFTER_LAST - 1
2365 enum nl80211_sta_bss_param {
2366 __NL80211_STA_BSS_PARAM_INVALID,
2367 NL80211_STA_BSS_PARAM_CTS_PROT,
2368 NL80211_STA_BSS_PARAM_SHORT_PREAMBLE,
2369 NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME,
2370 NL80211_STA_BSS_PARAM_DTIM_PERIOD,
2371 NL80211_STA_BSS_PARAM_BEACON_INTERVAL,
2374 __NL80211_STA_BSS_PARAM_AFTER_LAST,
2375 NL80211_STA_BSS_PARAM_MAX = __NL80211_STA_BSS_PARAM_AFTER_LAST - 1
2441 enum nl80211_sta_info {
2442 __NL80211_STA_INFO_INVALID,
2443 NL80211_STA_INFO_INACTIVE_TIME,
2444 NL80211_STA_INFO_RX_BYTES,
2445 NL80211_STA_INFO_TX_BYTES,
2446 NL80211_STA_INFO_LLID,
2447 NL80211_STA_INFO_PLID,
2448 NL80211_STA_INFO_PLINK_STATE,
2449 NL80211_STA_INFO_SIGNAL,
2450 NL80211_STA_INFO_TX_BITRATE,
2451 NL80211_STA_INFO_RX_PACKETS,
2452 NL80211_STA_INFO_TX_PACKETS,
2453 NL80211_STA_INFO_TX_RETRIES,
2454 NL80211_STA_INFO_TX_FAILED,
2455 NL80211_STA_INFO_SIGNAL_AVG,
2456 NL80211_STA_INFO_RX_BITRATE,
2457 NL80211_STA_INFO_BSS_PARAM,
2458 NL80211_STA_INFO_CONNECTED_TIME,
2459 NL80211_STA_INFO_STA_FLAGS,
2460 NL80211_STA_INFO_BEACON_LOSS,
2461 NL80211_STA_INFO_T_OFFSET,
2462 NL80211_STA_INFO_LOCAL_PM,
2463 NL80211_STA_INFO_PEER_PM,
2464 NL80211_STA_INFO_NONPEER_PM,
2465 NL80211_STA_INFO_RX_BYTES64,
2466 NL80211_STA_INFO_TX_BYTES64,
2467 NL80211_STA_INFO_CHAIN_SIGNAL,
2468 NL80211_STA_INFO_CHAIN_SIGNAL_AVG,
2469 NL80211_STA_INFO_EXPECTED_THROUGHPUT,
2470 NL80211_STA_INFO_RX_DROP_MISC,
2471 NL80211_STA_INFO_BEACON_RX,
2472 NL80211_STA_INFO_BEACON_SIGNAL_AVG,
2473 NL80211_STA_INFO_TID_STATS,
2476 __NL80211_STA_INFO_AFTER_LAST,
2477 NL80211_STA_INFO_MAX = __NL80211_STA_INFO_AFTER_LAST - 1
2493 enum nl80211_tid_stats {
2494 __NL80211_TID_STATS_INVALID,
2495 NL80211_TID_STATS_RX_MSDU,
2496 NL80211_TID_STATS_TX_MSDU,
2497 NL80211_TID_STATS_TX_MSDU_RETRIES,
2498 NL80211_TID_STATS_TX_MSDU_FAILED,
2501 NUM_NL80211_TID_STATS,
2502 NL80211_TID_STATS_MAX = NUM_NL80211_TID_STATS - 1
2515 enum nl80211_mpath_flags {
2516 NL80211_MPATH_FLAG_ACTIVE = 1<<0,
2517 NL80211_MPATH_FLAG_RESOLVING = 1<<1,
2518 NL80211_MPATH_FLAG_SN_VALID = 1<<2,
2519 NL80211_MPATH_FLAG_FIXED = 1<<3,
2520 NL80211_MPATH_FLAG_RESOLVED = 1<<4,
2543 enum nl80211_mpath_info {
2544 __NL80211_MPATH_INFO_INVALID,
2545 NL80211_MPATH_INFO_FRAME_QLEN,
2546 NL80211_MPATH_INFO_SN,
2547 NL80211_MPATH_INFO_METRIC,
2548 NL80211_MPATH_INFO_EXPTIME,
2549 NL80211_MPATH_INFO_FLAGS,
2550 NL80211_MPATH_INFO_DISCOVERY_TIMEOUT,
2551 NL80211_MPATH_INFO_DISCOVERY_RETRIES,
2554 __NL80211_MPATH_INFO_AFTER_LAST,
2555 NL80211_MPATH_INFO_MAX = __NL80211_MPATH_INFO_AFTER_LAST - 1
2576 enum nl80211_band_attr {
2577 __NL80211_BAND_ATTR_INVALID,
2578 NL80211_BAND_ATTR_FREQS,
2579 NL80211_BAND_ATTR_RATES,
2581 NL80211_BAND_ATTR_HT_MCS_SET,
2582 NL80211_BAND_ATTR_HT_CAPA,
2583 NL80211_BAND_ATTR_HT_AMPDU_FACTOR,
2584 NL80211_BAND_ATTR_HT_AMPDU_DENSITY,
2586 NL80211_BAND_ATTR_VHT_MCS_SET,
2587 NL80211_BAND_ATTR_VHT_CAPA,
2590 __NL80211_BAND_ATTR_AFTER_LAST,
2591 NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1
2594 #define NL80211_BAND_ATTR_HT_CAPA NL80211_BAND_ATTR_HT_CAPA
2653 enum nl80211_frequency_attr {
2654 __NL80211_FREQUENCY_ATTR_INVALID,
2655 NL80211_FREQUENCY_ATTR_FREQ,
2656 NL80211_FREQUENCY_ATTR_DISABLED,
2657 NL80211_FREQUENCY_ATTR_NO_IR,
2658 __NL80211_FREQUENCY_ATTR_NO_IBSS,
2659 NL80211_FREQUENCY_ATTR_RADAR,
2660 NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
2661 NL80211_FREQUENCY_ATTR_DFS_STATE,
2662 NL80211_FREQUENCY_ATTR_DFS_TIME,
2663 NL80211_FREQUENCY_ATTR_NO_HT40_MINUS,
2664 NL80211_FREQUENCY_ATTR_NO_HT40_PLUS,
2665 NL80211_FREQUENCY_ATTR_NO_80MHZ,
2666 NL80211_FREQUENCY_ATTR_NO_160MHZ,
2667 NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
2668 NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
2669 NL80211_FREQUENCY_ATTR_GO_CONCURRENT,
2670 NL80211_FREQUENCY_ATTR_NO_20MHZ,
2671 NL80211_FREQUENCY_ATTR_NO_10MHZ,
2674 __NL80211_FREQUENCY_ATTR_AFTER_LAST,
2675 NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1
2678 #define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
2679 #define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR
2680 #define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR
2681 #define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR
2693 enum nl80211_bitrate_attr {
2694 __NL80211_BITRATE_ATTR_INVALID,
2695 NL80211_BITRATE_ATTR_RATE,
2696 NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE,
2699 __NL80211_BITRATE_ATTR_AFTER_LAST,
2700 NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1
2719 enum nl80211_reg_initiator {
2720 NL80211_REGDOM_SET_BY_CORE,
2721 NL80211_REGDOM_SET_BY_USER,
2722 NL80211_REGDOM_SET_BY_DRIVER,
2723 NL80211_REGDOM_SET_BY_COUNTRY_IE,
2742 enum nl80211_reg_type {
2743 NL80211_REGDOM_TYPE_COUNTRY,
2744 NL80211_REGDOM_TYPE_WORLD,
2745 NL80211_REGDOM_TYPE_CUSTOM_WORLD,
2746 NL80211_REGDOM_TYPE_INTERSECTION,
2774 enum nl80211_reg_rule_attr {
2775 __NL80211_REG_RULE_ATTR_INVALID,
2776 NL80211_ATTR_REG_RULE_FLAGS,
2778 NL80211_ATTR_FREQ_RANGE_START,
2779 NL80211_ATTR_FREQ_RANGE_END,
2780 NL80211_ATTR_FREQ_RANGE_MAX_BW,
2782 NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
2783 NL80211_ATTR_POWER_RULE_MAX_EIRP,
2785 NL80211_ATTR_DFS_CAC_TIME,
2788 __NL80211_REG_RULE_ATTR_AFTER_LAST,
2789 NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
2809 enum nl80211_sched_scan_match_attr {
2810 __NL80211_SCHED_SCAN_MATCH_ATTR_INVALID,
2812 NL80211_SCHED_SCAN_MATCH_ATTR_SSID,
2813 NL80211_SCHED_SCAN_MATCH_ATTR_RSSI,
2816 __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST,
2817 NL80211_SCHED_SCAN_MATCH_ATTR_MAX =
2818 __NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST - 1
2822 #define NL80211_ATTR_SCHED_SCAN_MATCH_SSID NL80211_SCHED_SCAN_MATCH_ATTR_SSID
2847 enum nl80211_reg_rule_flags {
2848 NL80211_RRF_NO_OFDM = 1<<0,
2849 NL80211_RRF_NO_CCK = 1<<1,
2850 NL80211_RRF_NO_INDOOR = 1<<2,
2851 NL80211_RRF_NO_OUTDOOR = 1<<3,
2852 NL80211_RRF_DFS = 1<<4,
2853 NL80211_RRF_PTP_ONLY = 1<<5,
2854 NL80211_RRF_PTMP_ONLY = 1<<6,
2855 NL80211_RRF_NO_IR = 1<<7,
2856 __NL80211_RRF_NO_IBSS = 1<<8,
2857 NL80211_RRF_AUTO_BW = 1<<11,
2858 NL80211_RRF_GO_CONCURRENT = 1<<12,
2859 NL80211_RRF_NO_HT40MINUS = 1<<13,
2860 NL80211_RRF_NO_HT40PLUS = 1<<14,
2861 NL80211_RRF_NO_80MHZ = 1<<15,
2862 NL80211_RRF_NO_160MHZ = 1<<16,
2865 #define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
2866 #define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR
2867 #define NL80211_RRF_NO_IR NL80211_RRF_NO_IR
2868 #define NL80211_RRF_NO_HT40 (NL80211_RRF_NO_HT40MINUS |\
2869 NL80211_RRF_NO_HT40PLUS)
2872 #define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
2883 enum nl80211_dfs_regions {
2884 NL80211_DFS_UNSET = 0,
2885 NL80211_DFS_FCC = 1,
2886 NL80211_DFS_ETSI = 2,
2908 enum nl80211_user_reg_hint_type {
2909 NL80211_USER_REG_HINT_USER = 0,
2910 NL80211_USER_REG_HINT_CELL_BASE = 1,
2911 NL80211_USER_REG_HINT_INDOOR = 2,
2941 enum nl80211_survey_info {
2942 __NL80211_SURVEY_INFO_INVALID,
2943 NL80211_SURVEY_INFO_FREQUENCY,
2944 NL80211_SURVEY_INFO_NOISE,
2945 NL80211_SURVEY_INFO_IN_USE,
2946 NL80211_SURVEY_INFO_TIME,
2947 NL80211_SURVEY_INFO_TIME_BUSY,
2948 NL80211_SURVEY_INFO_TIME_EXT_BUSY,
2949 NL80211_SURVEY_INFO_TIME_RX,
2950 NL80211_SURVEY_INFO_TIME_TX,
2951 NL80211_SURVEY_INFO_TIME_SCAN,
2954 __NL80211_SURVEY_INFO_AFTER_LAST,
2955 NL80211_SURVEY_INFO_MAX = __NL80211_SURVEY_INFO_AFTER_LAST - 1
2959 #define NL80211_SURVEY_INFO_CHANNEL_TIME NL80211_SURVEY_INFO_TIME
2960 #define NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY NL80211_SURVEY_INFO_TIME_BUSY
2961 #define NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY NL80211_SURVEY_INFO_TIME_EXT_BUSY
2962 #define NL80211_SURVEY_INFO_CHANNEL_TIME_RX NL80211_SURVEY_INFO_TIME_RX
2963 #define NL80211_SURVEY_INFO_CHANNEL_TIME_TX NL80211_SURVEY_INFO_TIME_TX
2985 enum nl80211_mntr_flags {
2986 __NL80211_MNTR_FLAG_INVALID,
2987 NL80211_MNTR_FLAG_FCSFAIL,
2988 NL80211_MNTR_FLAG_PLCPFAIL,
2989 NL80211_MNTR_FLAG_CONTROL,
2990 NL80211_MNTR_FLAG_OTHER_BSS,
2991 NL80211_MNTR_FLAG_COOK_FRAMES,
2992 NL80211_MNTR_FLAG_ACTIVE,
2995 __NL80211_MNTR_FLAG_AFTER_LAST,
2996 NL80211_MNTR_FLAG_MAX = __NL80211_MNTR_FLAG_AFTER_LAST - 1
3018 enum nl80211_mesh_power_mode {
3019 NL80211_MESH_POWER_UNKNOWN,
3020 NL80211_MESH_POWER_ACTIVE,
3021 NL80211_MESH_POWER_LIGHT_SLEEP,
3022 NL80211_MESH_POWER_DEEP_SLEEP,
3024 __NL80211_MESH_POWER_AFTER_LAST,
3025 NL80211_MESH_POWER_MAX = __NL80211_MESH_POWER_AFTER_LAST - 1
3137 enum nl80211_meshconf_params {
3138 __NL80211_MESHCONF_INVALID,
3139 NL80211_MESHCONF_RETRY_TIMEOUT,
3140 NL80211_MESHCONF_CONFIRM_TIMEOUT,
3141 NL80211_MESHCONF_HOLDING_TIMEOUT,
3142 NL80211_MESHCONF_MAX_PEER_LINKS,
3143 NL80211_MESHCONF_MAX_RETRIES,
3144 NL80211_MESHCONF_TTL,
3145 NL80211_MESHCONF_AUTO_OPEN_PLINKS,
3146 NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES,
3147 NL80211_MESHCONF_PATH_REFRESH_TIME,
3148 NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT,
3149 NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT,
3150 NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL,
3151 NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME,
3152 NL80211_MESHCONF_HWMP_ROOTMODE,
3153 NL80211_MESHCONF_ELEMENT_TTL,
3154 NL80211_MESHCONF_HWMP_RANN_INTERVAL,
3155 NL80211_MESHCONF_GATE_ANNOUNCEMENTS,
3156 NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL,
3157 NL80211_MESHCONF_FORWARDING,
3158 NL80211_MESHCONF_RSSI_THRESHOLD,
3159 NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
3160 NL80211_MESHCONF_HT_OPMODE,
3161 NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT,
3162 NL80211_MESHCONF_HWMP_ROOT_INTERVAL,
3163 NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
3164 NL80211_MESHCONF_POWER_MODE,
3165 NL80211_MESHCONF_AWAKE_WINDOW,
3166 NL80211_MESHCONF_PLINK_TIMEOUT,
3169 __NL80211_MESHCONF_ATTR_AFTER_LAST,
3170 NL80211_MESHCONF_ATTR_MAX = __NL80211_MESHCONF_ATTR_AFTER_LAST - 1
3223 enum nl80211_mesh_setup_params {
3224 __NL80211_MESH_SETUP_INVALID,
3225 NL80211_MESH_SETUP_ENABLE_VENDOR_PATH_SEL,
3226 NL80211_MESH_SETUP_ENABLE_VENDOR_METRIC,
3227 NL80211_MESH_SETUP_IE,
3228 NL80211_MESH_SETUP_USERSPACE_AUTH,
3229 NL80211_MESH_SETUP_USERSPACE_AMPE,
3230 NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC,
3231 NL80211_MESH_SETUP_USERSPACE_MPM,
3232 NL80211_MESH_SETUP_AUTH_PROTOCOL,
3235 __NL80211_MESH_SETUP_ATTR_AFTER_LAST,
3236 NL80211_MESH_SETUP_ATTR_MAX = __NL80211_MESH_SETUP_ATTR_AFTER_LAST - 1
3253 enum nl80211_txq_attr {
3254 __NL80211_TXQ_ATTR_INVALID,
3255 NL80211_TXQ_ATTR_AC,
3256 NL80211_TXQ_ATTR_TXOP,
3257 NL80211_TXQ_ATTR_CWMIN,
3258 NL80211_TXQ_ATTR_CWMAX,
3259 NL80211_TXQ_ATTR_AIFS,
3262 __NL80211_TXQ_ATTR_AFTER_LAST,
3263 NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1
3275 #define NL80211_TXQ_ATTR_QUEUE NL80211_TXQ_ATTR_AC
3276 #define NL80211_TXQ_Q_VO NL80211_AC_VO
3277 #define NL80211_TXQ_Q_VI NL80211_AC_VI
3278 #define NL80211_TXQ_Q_BE NL80211_AC_BE
3279 #define NL80211_TXQ_Q_BK NL80211_AC_BK
3290 enum nl80211_channel_type {
3293 NL80211_CHAN_HT40MINUS,
3294 NL80211_CHAN_HT40PLUS
3317 enum nl80211_chan_width {
3318 NL80211_CHAN_WIDTH_20_NOHT,
3319 NL80211_CHAN_WIDTH_20,
3320 NL80211_CHAN_WIDTH_40,
3321 NL80211_CHAN_WIDTH_80,
3322 NL80211_CHAN_WIDTH_80P80,
3323 NL80211_CHAN_WIDTH_160,
3324 NL80211_CHAN_WIDTH_5,
3325 NL80211_CHAN_WIDTH_10,
3338 enum nl80211_bss_scan_width {
3339 NL80211_BSS_CHAN_WIDTH_20,
3340 NL80211_BSS_CHAN_WIDTH_10,
3341 NL80211_BSS_CHAN_WIDTH_5,
3385 __NL80211_BSS_INVALID,
3387 NL80211_BSS_FREQUENCY,
3389 NL80211_BSS_BEACON_INTERVAL,
3390 NL80211_BSS_CAPABILITY,
3391 NL80211_BSS_INFORMATION_ELEMENTS,
3392 NL80211_BSS_SIGNAL_MBM,
3393 NL80211_BSS_SIGNAL_UNSPEC,
3395 NL80211_BSS_SEEN_MS_AGO,
3396 NL80211_BSS_BEACON_IES,
3397 NL80211_BSS_CHAN_WIDTH,
3398 NL80211_BSS_BEACON_TSF,
3399 NL80211_BSS_PRESP_DATA,
3402 __NL80211_BSS_AFTER_LAST,
3403 NL80211_BSS_MAX = __NL80211_BSS_AFTER_LAST - 1
3418 enum nl80211_bss_status {
3419 NL80211_BSS_STATUS_AUTHENTICATED,
3420 NL80211_BSS_STATUS_ASSOCIATED,
3421 NL80211_BSS_STATUS_IBSS_JOINED,
3439 enum nl80211_auth_type {
3440 NL80211_AUTHTYPE_OPEN_SYSTEM,
3441 NL80211_AUTHTYPE_SHARED_KEY,
3442 NL80211_AUTHTYPE_FT,
3443 NL80211_AUTHTYPE_NETWORK_EAP,
3444 NL80211_AUTHTYPE_SAE,
3447 __NL80211_AUTHTYPE_NUM,
3448 NL80211_AUTHTYPE_MAX = __NL80211_AUTHTYPE_NUM - 1,
3449 NL80211_AUTHTYPE_AUTOMATIC
3459 enum nl80211_key_type {
3460 NL80211_KEYTYPE_GROUP,
3461 NL80211_KEYTYPE_PAIRWISE,
3462 NL80211_KEYTYPE_PEERKEY,
3464 NUM_NL80211_KEYTYPES
3474 NL80211_MFP_REQUIRED,
3477 enum nl80211_wpa_versions {
3478 NL80211_WPA_VERSION_1 = 1 << 0,
3479 NL80211_WPA_VERSION_2 = 1 << 1,
3491 enum nl80211_key_default_types {
3492 __NL80211_KEY_DEFAULT_TYPE_INVALID,
3493 NL80211_KEY_DEFAULT_TYPE_UNICAST,
3494 NL80211_KEY_DEFAULT_TYPE_MULTICAST,
3496 NUM_NL80211_KEY_DEFAULT_TYPES
3521 enum nl80211_key_attributes {
3522 __NL80211_KEY_INVALID,
3527 NL80211_KEY_DEFAULT,
3528 NL80211_KEY_DEFAULT_MGMT,
3530 NL80211_KEY_DEFAULT_TYPES,
3533 __NL80211_KEY_AFTER_LAST,
3534 NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1
3552 enum nl80211_tx_rate_attributes {
3553 __NL80211_TXRATE_INVALID,
3554 NL80211_TXRATE_LEGACY,
3560 __NL80211_TXRATE_AFTER_LAST,
3561 NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
3564 #define NL80211_TXRATE_MCS NL80211_TXRATE_HT
3565 #define NL80211_VHT_NSS_MAX 8
3572 __u16 mcs[NL80211_VHT_NSS_MAX];
3575 enum nl80211_txrate_gi {
3576 NL80211_TXRATE_DEFAULT_GI,
3577 NL80211_TXRATE_FORCE_SGI,
3578 NL80211_TXRATE_FORCE_LGI,
3598 enum nl80211_ps_state {
3599 NL80211_PS_DISABLED,
3631 enum nl80211_attr_cqm {
3632 __NL80211_ATTR_CQM_INVALID,
3633 NL80211_ATTR_CQM_RSSI_THOLD,
3634 NL80211_ATTR_CQM_RSSI_HYST,
3635 NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT,
3636 NL80211_ATTR_CQM_PKT_LOSS_EVENT,
3637 NL80211_ATTR_CQM_TXE_RATE,
3638 NL80211_ATTR_CQM_TXE_PKTS,
3639 NL80211_ATTR_CQM_TXE_INTVL,
3640 NL80211_ATTR_CQM_BEACON_LOSS_EVENT,
3643 __NL80211_ATTR_CQM_AFTER_LAST,
3644 NL80211_ATTR_CQM_MAX = __NL80211_ATTR_CQM_AFTER_LAST - 1
3655 enum nl80211_cqm_rssi_threshold_event {
3656 NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,
3657 NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,
3658 NL80211_CQM_RSSI_BEACON_LOSS_EVENT,
3668 enum nl80211_tx_power_setting {
3669 NL80211_TX_POWER_AUTOMATIC,
3670 NL80211_TX_POWER_LIMITED,
3671 NL80211_TX_POWER_FIXED,
3695 enum nl80211_packet_pattern_attr {
3696 __NL80211_PKTPAT_INVALID,
3697 NL80211_PKTPAT_MASK,
3698 NL80211_PKTPAT_PATTERN,
3699 NL80211_PKTPAT_OFFSET,
3702 MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1,
3720 __u32 min_pattern_len;
3721 __u32 max_pattern_len;
3722 __u32 max_pkt_offset;
3723 } __attribute__((packed));
3726 #define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID
3727 #define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK
3728 #define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN
3729 #define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET
3730 #define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT
3731 #define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT
3732 #define nl80211_wowlan_pattern_support nl80211_pattern_support
3823 enum nl80211_wowlan_triggers {
3824 __NL80211_WOWLAN_TRIG_INVALID,
3825 NL80211_WOWLAN_TRIG_ANY,
3826 NL80211_WOWLAN_TRIG_DISCONNECT,
3827 NL80211_WOWLAN_TRIG_MAGIC_PKT,
3828 NL80211_WOWLAN_TRIG_PKT_PATTERN,
3829 NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED,
3830 NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE,
3831 NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST,
3832 NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE,
3833 NL80211_WOWLAN_TRIG_RFKILL_RELEASE,
3834 NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211,
3835 NL80211_WOWLAN_TRIG_WAKEUP_PKT_80211_LEN,
3836 NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023,
3837 NL80211_WOWLAN_TRIG_WAKEUP_PKT_8023_LEN,
3838 NL80211_WOWLAN_TRIG_TCP_CONNECTION,
3839 NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH,
3840 NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST,
3841 NL80211_WOWLAN_TRIG_WAKEUP_TCP_NOMORETOKENS,
3842 NL80211_WOWLAN_TRIG_NET_DETECT,
3843 NL80211_WOWLAN_TRIG_NET_DETECT_RESULTS,
3846 NUM_NL80211_WOWLAN_TRIG,
3847 MAX_NL80211_WOWLAN_TRIG = NUM_NL80211_WOWLAN_TRIG - 1
3884 __u32 start, offset, len;
3896 __u8 token_stream[];
3906 __u32 min_len, max_len, bufsize;
3941 enum nl80211_wowlan_tcp_attrs {
3942 __NL80211_WOWLAN_TCP_INVALID,
3943 NL80211_WOWLAN_TCP_SRC_IPV4,
3944 NL80211_WOWLAN_TCP_DST_IPV4,
3945 NL80211_WOWLAN_TCP_DST_MAC,
3946 NL80211_WOWLAN_TCP_SRC_PORT,
3947 NL80211_WOWLAN_TCP_DST_PORT,
3948 NL80211_WOWLAN_TCP_DATA_PAYLOAD,
3949 NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ,
3950 NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN,
3951 NL80211_WOWLAN_TCP_DATA_INTERVAL,
3952 NL80211_WOWLAN_TCP_WAKE_PAYLOAD,
3953 NL80211_WOWLAN_TCP_WAKE_MASK,
3956 NUM_NL80211_WOWLAN_TCP,
3957 MAX_NL80211_WOWLAN_TCP = NUM_NL80211_WOWLAN_TCP - 1
3973 } __attribute__((packed));
3986 enum nl80211_attr_coalesce_rule {
3987 __NL80211_COALESCE_RULE_INVALID,
3988 NL80211_ATTR_COALESCE_RULE_DELAY,
3989 NL80211_ATTR_COALESCE_RULE_CONDITION,
3990 NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,
3993 NUM_NL80211_ATTR_COALESCE_RULE,
3994 NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1
4004 enum nl80211_coalesce_condition {
4005 NL80211_COALESCE_CONDITION_MATCH,
4006 NL80211_COALESCE_CONDITION_NO_MATCH
4019 enum nl80211_iface_limit_attrs {
4020 NL80211_IFACE_LIMIT_UNSPEC,
4021 NL80211_IFACE_LIMIT_MAX,
4022 NL80211_IFACE_LIMIT_TYPES,
4025 NUM_NL80211_IFACE_LIMIT,
4026 MAX_NL80211_IFACE_LIMIT = NUM_NL80211_IFACE_LIMIT - 1
4075 enum nl80211_if_combination_attrs {
4076 NL80211_IFACE_COMB_UNSPEC,
4077 NL80211_IFACE_COMB_LIMITS,
4078 NL80211_IFACE_COMB_MAXNUM,
4079 NL80211_IFACE_COMB_STA_AP_BI_MATCH,
4080 NL80211_IFACE_COMB_NUM_CHANNELS,
4081 NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS,
4082 NL80211_IFACE_COMB_RADAR_DETECT_REGIONS,
4085 NUM_NL80211_IFACE_COMB,
4086 MAX_NL80211_IFACE_COMB = NUM_NL80211_IFACE_COMB - 1
4109 enum nl80211_plink_state {
4110 NL80211_PLINK_LISTEN,
4111 NL80211_PLINK_OPN_SNT,
4112 NL80211_PLINK_OPN_RCVD,
4113 NL80211_PLINK_CNF_RCVD,
4114 NL80211_PLINK_ESTAB,
4115 NL80211_PLINK_HOLDING,
4116 NL80211_PLINK_BLOCKED,
4119 NUM_NL80211_PLINK_STATES,
4120 MAX_NL80211_PLINK_STATES = NUM_NL80211_PLINK_STATES - 1
4132 enum plink_actions {
4133 NL80211_PLINK_ACTION_NO_ACTION,
4134 NL80211_PLINK_ACTION_OPEN,
4135 NL80211_PLINK_ACTION_BLOCK,
4137 NUM_NL80211_PLINK_ACTIONS,
4141 #define NL80211_KCK_LEN 16
4142 #define NL80211_KEK_LEN 16
4143 #define NL80211_REPLAY_CTR_LEN 8
4154 enum nl80211_rekey_data {
4155 __NL80211_REKEY_DATA_INVALID,
4156 NL80211_REKEY_DATA_KEK,
4157 NL80211_REKEY_DATA_KCK,
4158 NL80211_REKEY_DATA_REPLAY_CTR,
4161 NUM_NL80211_REKEY_DATA,
4162 MAX_NL80211_REKEY_DATA = NUM_NL80211_REKEY_DATA - 1
4174 enum nl80211_hidden_ssid {
4175 NL80211_HIDDEN_SSID_NOT_IN_USE,
4176 NL80211_HIDDEN_SSID_ZERO_LEN,
4177 NL80211_HIDDEN_SSID_ZERO_CONTENTS
4190 enum nl80211_sta_wme_attr {
4191 __NL80211_STA_WME_INVALID,
4192 NL80211_STA_WME_UAPSD_QUEUES,
4193 NL80211_STA_WME_MAX_SP,
4196 __NL80211_STA_WME_AFTER_LAST,
4197 NL80211_STA_WME_MAX = __NL80211_STA_WME_AFTER_LAST - 1
4212 enum nl80211_pmksa_candidate_attr {
4213 __NL80211_PMKSA_CANDIDATE_INVALID,
4214 NL80211_PMKSA_CANDIDATE_INDEX,
4215 NL80211_PMKSA_CANDIDATE_BSSID,
4216 NL80211_PMKSA_CANDIDATE_PREAUTH,
4219 NUM_NL80211_PMKSA_CANDIDATE,
4220 MAX_NL80211_PMKSA_CANDIDATE = NUM_NL80211_PMKSA_CANDIDATE - 1
4231 enum nl80211_tdls_operation {
4232 NL80211_TDLS_DISCOVERY_REQ,
4234 NL80211_TDLS_TEARDOWN,
4235 NL80211_TDLS_ENABLE_LINK,
4236 NL80211_TDLS_DISABLE_LINK,
4340 enum nl80211_feature_flags {
4341 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
4342 NL80211_FEATURE_HT_IBSS = 1 << 1,
4343 NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2,
4344 NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3,
4345 NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4,
4346 NL80211_FEATURE_SAE = 1 << 5,
4347 NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6,
4348 NL80211_FEATURE_SCAN_FLUSH = 1 << 7,
4349 NL80211_FEATURE_AP_SCAN = 1 << 8,
4350 NL80211_FEATURE_VIF_TXPOWER = 1 << 9,
4351 NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10,
4352 NL80211_FEATURE_P2P_GO_CTWIN = 1 << 11,
4353 NL80211_FEATURE_P2P_GO_OPPPS = 1 << 12,
4355 NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14,
4356 NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15,
4357 NL80211_FEATURE_USERSPACE_MPM = 1 << 16,
4358 NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17,
4359 NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18,
4360 NL80211_FEATURE_DS_PARAM_SET_IE_IN_PROBES = 1 << 19,
4361 NL80211_FEATURE_WFA_TPC_IE_IN_PROBES = 1 << 20,
4362 NL80211_FEATURE_QUIET = 1 << 21,
4363 NL80211_FEATURE_TX_POWER_INSERTION = 1 << 22,
4364 NL80211_FEATURE_ACKTO_ESTIMATION = 1 << 23,
4365 NL80211_FEATURE_STATIC_SMPS = 1 << 24,
4366 NL80211_FEATURE_DYNAMIC_SMPS = 1 << 25,
4367 NL80211_FEATURE_SUPPORTS_WMM_ADMISSION = 1 << 26,
4368 NL80211_FEATURE_MAC_ON_CREATE = 1 << 27,
4369 NL80211_FEATURE_TDLS_CHANNEL_SWITCH = 1 << 28,
4370 NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR = 1 << 29,
4371 NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR = 1 << 30,
4372 NL80211_FEATURE_ND_RANDOM_MAC_ADDR = 1 << 31,
4382 enum nl80211_ext_feature_index {
4383 NL80211_EXT_FEATURE_VHT_IBSS,
4386 NUM_NL80211_EXT_FEATURES,
4387 MAX_NL80211_EXT_FEATURES = NUM_NL80211_EXT_FEATURES - 1
4405 enum nl80211_probe_resp_offload_support_attr {
4406 NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS = 1<<0,
4407 NL80211_PROBE_RESP_OFFLOAD_SUPPORT_WPS2 = 1<<1,
4408 NL80211_PROBE_RESP_OFFLOAD_SUPPORT_P2P = 1<<2,
4409 NL80211_PROBE_RESP_OFFLOAD_SUPPORT_80211U = 1<<3,
4418 enum nl80211_connect_failed_reason {
4419 NL80211_CONN_FAIL_MAX_CLIENTS,
4420 NL80211_CONN_FAIL_BLOCKED_CLIENT,
4448 enum nl80211_scan_flags {
4449 NL80211_SCAN_FLAG_LOW_PRIORITY = 1<<0,
4450 NL80211_SCAN_FLAG_FLUSH = 1<<1,
4451 NL80211_SCAN_FLAG_AP = 1<<2,
4452 NL80211_SCAN_FLAG_RANDOM_ADDR = 1<<3,
4469 enum nl80211_acl_policy {
4470 NL80211_ACL_POLICY_ACCEPT_UNLESS_LISTED,
4471 NL80211_ACL_POLICY_DENY_UNLESS_LISTED,
4485 enum nl80211_smps_mode {
4487 NL80211_SMPS_STATIC,
4488 NL80211_SMPS_DYNAMIC,
4490 __NL80211_SMPS_AFTER_LAST,
4491 NL80211_SMPS_MAX = __NL80211_SMPS_AFTER_LAST - 1
4510 enum nl80211_radar_event {
4511 NL80211_RADAR_DETECTED,
4512 NL80211_RADAR_CAC_FINISHED,
4513 NL80211_RADAR_CAC_ABORTED,
4514 NL80211_RADAR_NOP_FINISHED,
4529 enum nl80211_dfs_state {
4531 NL80211_DFS_UNAVAILABLE,
4532 NL80211_DFS_AVAILABLE,
4543 enum nl80211_protocol_features {
4544 NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP = 1 << 0,
4557 enum nl80211_crit_proto_id {
4558 NL80211_CRIT_PROTO_UNSPEC,
4559 NL80211_CRIT_PROTO_DHCP,
4560 NL80211_CRIT_PROTO_EAPOL,
4561 NL80211_CRIT_PROTO_APIPA,
4563 NUM_NL80211_CRIT_PROTO
4567 #define NL80211_CRIT_PROTO_MAX_DURATION 5000
4577 enum nl80211_rxmgmt_flags {
4578 NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
4586 #define NL80211_VENDOR_ID_IS_LINUX 0x80000000
4612 enum nl80211_tdls_peer_capability {
4613 NL80211_TDLS_PEER_HT = 1<<0,
4614 NL80211_TDLS_PEER_VHT = 1<<1,
4615 NL80211_TDLS_PEER_WMM = 1<<2,
coalesce rule support information
Definition: nl80211_copy.h:3969
DOC: TCP connection wakeup.
Definition: nl80211_copy.h:3883
data token features
Definition: nl80211_copy.h:3905
station flags mask/set
Definition: nl80211_copy.h:2287
vendor command data
Definition: nl80211_copy.h:4596
VHT MCS/NSS txrate bitmap.
Definition: nl80211_copy.h:3571
WoWLAN TCP data token config.
Definition: nl80211_copy.h:3894
packet pattern support information
Definition: nl80211_copy.h:3718