source: trunk/package/iw/patches/001-nl80211_h_sync.patch @ 31323

Last change on this file since 31323 was 31323, checked in by nbd, 4 years ago

iw: sync nl80211.h update with compat-wireless

File size: 11.2 KB
  • nl80211.h

    a b  
    156156 * @NL80211_CMD_DEL_KEY: delete a key identified by %NL80211_ATTR_KEY_IDX 
    157157 *      or %NL80211_ATTR_MAC. 
    158158 * 
    159  * @NL80211_CMD_GET_BEACON: retrieve beacon information (returned in a 
    160  *      %NL80222_CMD_NEW_BEACON message) 
    161  * @NL80211_CMD_SET_BEACON: set the beacon on an access point interface 
    162  *      using the %NL80211_ATTR_BEACON_INTERVAL, %NL80211_ATTR_DTIM_PERIOD, 
    163  *      %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL attributes. 
    164  *      Following attributes are provided for drivers that generate full Beacon 
    165  *      and Probe Response frames internally: %NL80211_ATTR_SSID, 
     159 * @NL80211_CMD_GET_BEACON: (not used) 
     160 * @NL80211_CMD_SET_BEACON: change the beacon on an access point interface 
     161 *      using the %NL80211_ATTR_BEACON_HEAD and %NL80211_ATTR_BEACON_TAIL 
     162 *      attributes. For drivers that generate the beacon and probe responses 
     163 *      internally, the following attributes must be provided: %NL80211_ATTR_IE, 
     164 *      %NL80211_ATTR_IE_PROBE_RESP and %NL80211_ATTR_IE_ASSOC_RESP. 
     165 * @NL80211_CMD_START_AP: Start AP operation on an AP interface, parameters 
     166 *      are like for %NL80211_CMD_SET_BEACON, and additionally parameters that 
     167 *      do not change are used, these include %NL80211_ATTR_BEACON_INTERVAL, 
     168 *      %NL80211_ATTR_DTIM_PERIOD, %NL80211_ATTR_SSID, 
    166169 *      %NL80211_ATTR_HIDDEN_SSID, %NL80211_ATTR_CIPHERS_PAIRWISE, 
    167170 *      %NL80211_ATTR_CIPHER_GROUP, %NL80211_ATTR_WPA_VERSIONS, 
    168171 *      %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY, 
    169  *      %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_IE, %NL80211_ATTR_IE_PROBE_RESP, 
    170  *      %NL80211_ATTR_IE_ASSOC_RESP. 
    171  * @NL80211_CMD_NEW_BEACON: add a new beacon to an access point interface, 
    172  *      parameters are like for %NL80211_CMD_SET_BEACON. 
    173  * @NL80211_CMD_DEL_BEACON: remove the beacon, stop sending it 
     172 *      %NL80211_ATTR_AUTH_TYPE and %NL80211_ATTR_INACTIVITY_TIMEOUT. 
     173 * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP 
     174 * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface 
     175 * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP 
    174176 * 
    175177 * @NL80211_CMD_GET_STATION: Get station attributes for station identified by 
    176178 *      %NL80211_ATTR_MAC on the interface identified by %NL80211_ATTR_IFINDEX. 
     
    367369 *      %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, 
    368370 *      %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and 
    369371 *      %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT. 
     372 *      Background scan period can optionally be 
     373 *      specified in %NL80211_ATTR_BG_SCAN_PERIOD, 
     374 *      if not specified default background scan configuration 
     375 *      in driver is used and if period value is 0, bg scan will be disabled. 
     376 *      This attribute is ignored if driver does not support roam scan. 
    370377 *      It is also sent as an event, with the BSSID and response IEs when the 
    371378 *      connection is established or failed to be established. This can be 
    372379 *      determined by the STATUS_CODE attribute. 
     
    541548 * @NL80211_CMD_SET_NOACK_MAP: sets a bitmap for the individual TIDs whether 
    542549 *      No Acknowledgement Policy should be applied. 
    543550 * 
     551 * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels 
     552 *      independently of the userspace SME, send this event indicating 
     553 *      %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ with 
     554 *      %NL80211_ATTR_WIPHY_CHANNEL_TYPE. 
     555 * 
    544556 * @NL80211_CMD_MAX: highest used command number 
    545557 * @__NL80211_CMD_AFTER_LAST: internal use 
    546558 */ 
    enum nl80211_commands { 
    565577 
    566578        NL80211_CMD_GET_BEACON, 
    567579        NL80211_CMD_SET_BEACON, 
    568         NL80211_CMD_NEW_BEACON, 
    569         NL80211_CMD_DEL_BEACON, 
     580        NL80211_CMD_START_AP, 
     581        NL80211_CMD_NEW_BEACON = NL80211_CMD_START_AP, 
     582        NL80211_CMD_STOP_AP, 
     583        NL80211_CMD_DEL_BEACON = NL80211_CMD_STOP_AP, 
    570584 
    571585        NL80211_CMD_GET_STATION, 
    572586        NL80211_CMD_SET_STATION, 
    enum nl80211_commands { 
    680694 
    681695        NL80211_CMD_SET_NOACK_MAP, 
    682696 
     697        NL80211_CMD_CH_SWITCH_NOTIFY, 
     698 
    683699        /* add new commands above here */ 
    684700 
    685701        /* used to define NL80211_CMD_MAX below */ 
    enum nl80211_commands { 
    11931209 * @NL80211_ATTR_NOACK_MAP: This u16 bitmap contains the No Ack Policy of 
    11941210 *      up to 16 TIDs. 
    11951211 * 
     1212 * @NL80211_ATTR_INACTIVITY_TIMEOUT: timeout value in seconds, this can be 
     1213 *      used by the drivers which has MLME in firmware and does not have support 
     1214 *      to report per station tx/rx activity to free up the staion entry from 
     1215 *      the list. This needs to be used when the driver advertises the 
     1216 *      capability to timeout the stations. 
     1217 * 
     1218 * @NL80211_ATTR_RX_SIGNAL_DBM: signal strength in dBm (as a 32-bit int); 
     1219 *      this attribute is (depending on the driver capabilities) added to 
     1220 *      received frames indicated with %NL80211_CMD_FRAME. 
     1221 * 
     1222 * @NL80211_ATTR_BG_SCAN_PERIOD: Background scan period in seconds 
     1223 *      or 0 to disable background scan. 
     1224 * 
    11961225 * @NL80211_ATTR_MAX: highest attribute number currently defined 
    11971226 * @__NL80211_ATTR_AFTER_LAST: internal use 
    11981227 */ 
    enum nl80211_attrs { 
    14381467 
    14391468        NL80211_ATTR_NOACK_MAP, 
    14401469 
     1470        NL80211_ATTR_INACTIVITY_TIMEOUT, 
     1471 
     1472        NL80211_ATTR_RX_SIGNAL_DBM, 
     1473 
     1474        NL80211_ATTR_BG_SCAN_PERIOD, 
     1475 
    14411476        /* add attributes here, update the policy in nl80211.c */ 
    14421477 
    14431478        __NL80211_ATTR_AFTER_LAST, 
    enum nl80211_attrs { 
    14751510#define NL80211_ATTR_FEATURE_FLAGS NL80211_ATTR_FEATURE_FLAGS 
    14761511 
    14771512#define NL80211_MAX_SUPP_RATES                  32 
     1513#define NL80211_MAX_SUPP_HT_RATES               77 
    14781514#define NL80211_MAX_SUPP_REG_RULES              32 
    14791515#define NL80211_TKIP_DATA_OFFSET_ENCR_KEY       0 
    14801516#define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY     16 
    enum nl80211_iftype { 
    15361572 * @NL80211_STA_FLAG_WME: station is WME/QoS capable 
    15371573 * @NL80211_STA_FLAG_MFP: station uses management frame protection 
    15381574 * @NL80211_STA_FLAG_AUTHENTICATED: station is authenticated 
    1539  * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer 
     1575 * @NL80211_STA_FLAG_TDLS_PEER: station is a TDLS peer -- this flag should 
     1576 *      only be used in managed mode (even in the flags mask). Note that the 
     1577 *      flag can't be changed, it is only valid while adding a station, and 
     1578 *      attempts to change it will silently be ignored (rather than rejected 
     1579 *      as errors.) 
    15401580 * @NL80211_STA_FLAG_MAX: highest station flag number currently defined 
    15411581 * @__NL80211_STA_FLAG_AFTER_LAST: internal use 
    15421582 */ 
    enum nl80211_sta_bss_param { 
    16511691 *     containing info as possible, see &enum nl80211_sta_bss_param 
    16521692 * @NL80211_STA_INFO_CONNECTED_TIME: time since the station is last connected 
    16531693 * @NL80211_STA_INFO_STA_FLAGS: Contains a struct nl80211_sta_flag_update. 
     1694 * @NL80211_STA_INFO_BEACON_LOSS: count of times beacon loss was detected (u32) 
     1695 * @NL80211_STA_INFO_T_OFFSET: timing offset with respect to this STA (s64) 
     1696 * @NL80211_STA_INFO_CHAIN_SIGNAL: per-chain signal strength of last PPDU 
     1697 * @NL80211_STA_INFO_CHAIN_SIGNAL_AVG: per-chain signal strength average 
    16541698 * @__NL80211_STA_INFO_AFTER_LAST: internal 
    16551699 * @NL80211_STA_INFO_MAX: highest possible station info attribute 
    16561700 */ 
    enum nl80211_sta_info { 
    16731717        NL80211_STA_INFO_BSS_PARAM, 
    16741718        NL80211_STA_INFO_CONNECTED_TIME, 
    16751719        NL80211_STA_INFO_STA_FLAGS, 
     1720        NL80211_STA_INFO_BEACON_LOSS, 
     1721        NL80211_STA_INFO_T_OFFSET, 
     1722        NL80211_STA_INFO_CHAIN_SIGNAL, 
     1723        NL80211_STA_INFO_CHAIN_SIGNAL_AVG, 
    16761724 
    16771725        /* keep last */ 
    16781726        __NL80211_STA_INFO_AFTER_LAST, 
    enum nl80211_mntr_flags { 
    20982146 * TUs) during which a mesh STA can send only one Action frame containing a 
    20992147 * PERR element. 
    21002148 * 
     2149 * @NL80211_MESHCONF_FORWARDING: set Mesh STA as forwarding or non-forwarding 
     2150 * or forwarding entity (default is TRUE - forwarding entity) 
     2151 * 
     2152 * @NL80211_MESHCONF_RSSI_THRESHOLD: RSSI threshold in dBm. This specifies the 
     2153 * threshold for average signal strength of candidate station to establish 
     2154 * a peer link. 
     2155 * 
    21012156 * @NL80211_MESHCONF_ATTR_MAX: highest possible mesh configuration attribute 
    21022157 * 
     2158 * @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors 
     2159 * to synchronize to for 11s default synchronization method (see 11C.12.2.2) 
     2160 * 
    21032161 * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use 
    21042162 */ 
    21052163enum nl80211_meshconf_params { 
    enum nl80211_meshconf_params { 
    21222180        NL80211_MESHCONF_HWMP_RANN_INTERVAL, 
    21232181        NL80211_MESHCONF_GATE_ANNOUNCEMENTS, 
    21242182        NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, 
     2183        NL80211_MESHCONF_FORWARDING, 
     2184        NL80211_MESHCONF_RSSI_THRESHOLD, 
     2185        NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, 
    21252186 
    21262187        /* keep last */ 
    21272188        __NL80211_MESHCONF_ATTR_AFTER_LAST, 
    enum nl80211_meshconf_params { 
    21612222 * complete (unsecured) mesh peering without the need of a userspace daemon. 
    21622223 * 
    21632224 * @NL80211_MESH_SETUP_ATTR_MAX: highest possible mesh setup attribute number 
     2225 * 
     2226 * @NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC: Enable this option to use a 
     2227 * vendor specific synchronization method or disable it to use the default 
     2228 * neighbor offset synchronization 
     2229 * 
    21642230 * @__NL80211_MESH_SETUP_ATTR_AFTER_LAST: Internal use 
    21652231 */ 
    21662232enum nl80211_mesh_setup_params { 
    enum nl80211_mesh_setup_params { 
    21702236        NL80211_MESH_SETUP_IE, 
    21712237        NL80211_MESH_SETUP_USERSPACE_AUTH, 
    21722238        NL80211_MESH_SETUP_USERSPACE_AMPE, 
     2239        NL80211_MESH_SETUP_ENABLE_VENDOR_SYNC, 
    21732240 
    21742241        /* keep last */ 
    21752242        __NL80211_MESH_SETUP_ATTR_AFTER_LAST, 
    enum nl80211_mesh_setup_params { 
    21792246/** 
    21802247 * enum nl80211_txq_attr - TX queue parameter attributes 
    21812248 * @__NL80211_TXQ_ATTR_INVALID: Attribute number 0 is reserved 
    2182  * @NL80211_TXQ_ATTR_QUEUE: TX queue identifier (NL80211_TXQ_Q_*) 
     2249 * @NL80211_TXQ_ATTR_AC: AC identifier (NL80211_AC_*) 
    21832250 * @NL80211_TXQ_ATTR_TXOP: Maximum burst time in units of 32 usecs, 0 meaning 
    21842251 *      disabled 
    21852252 * @NL80211_TXQ_ATTR_CWMIN: Minimum contention window [a value of the form 
    enum nl80211_mesh_setup_params { 
    21922259 */ 
    21932260enum nl80211_txq_attr { 
    21942261        __NL80211_TXQ_ATTR_INVALID, 
    2195         NL80211_TXQ_ATTR_QUEUE, 
     2262        NL80211_TXQ_ATTR_AC, 
    21962263        NL80211_TXQ_ATTR_TXOP, 
    21972264        NL80211_TXQ_ATTR_CWMIN, 
    21982265        NL80211_TXQ_ATTR_CWMAX, 
    enum nl80211_txq_attr { 
    22032270        NL80211_TXQ_ATTR_MAX = __NL80211_TXQ_ATTR_AFTER_LAST - 1 
    22042271}; 
    22052272 
    2206 enum nl80211_txq_q { 
    2207         NL80211_TXQ_Q_VO, 
    2208         NL80211_TXQ_Q_VI, 
    2209         NL80211_TXQ_Q_BE, 
    2210         NL80211_TXQ_Q_BK 
     2273enum nl80211_ac { 
     2274        NL80211_AC_VO, 
     2275        NL80211_AC_VI, 
     2276        NL80211_AC_BE, 
     2277        NL80211_AC_BK, 
     2278        NL80211_NUM_ACS 
    22112279}; 
    22122280 
     2281/* backward compat */ 
     2282#define NL80211_TXQ_ATTR_QUEUE  NL80211_TXQ_ATTR_AC 
     2283#define NL80211_TXQ_Q_VO        NL80211_AC_VO 
     2284#define NL80211_TXQ_Q_VI        NL80211_AC_VI 
     2285#define NL80211_TXQ_Q_BE        NL80211_AC_BE 
     2286#define NL80211_TXQ_Q_BK        NL80211_AC_BK 
     2287 
    22132288enum nl80211_channel_type { 
    22142289        NL80211_CHAN_NO_HT, 
    22152290        NL80211_CHAN_HT20, 
    enum nl80211_key_attributes { 
    23952470 *      in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with 
    23962471 *      1 = 500 kbps) but without the IE length restriction (at most 
    23972472 *      %NL80211_MAX_SUPP_RATES in a single array). 
     2473 * @NL80211_TXRATE_MCS: HT (MCS) rates allowed for TX rate selection 
     2474 *      in an array of MCS numbers. 
    23982475 * @__NL80211_TXRATE_AFTER_LAST: internal 
    23992476 * @NL80211_TXRATE_MAX: highest TX rate attribute 
    24002477 */ 
    24012478enum nl80211_tx_rate_attributes { 
    24022479        __NL80211_TXRATE_INVALID, 
    24032480        NL80211_TXRATE_LEGACY, 
     2481        NL80211_TXRATE_MCS, 
    24042482 
    24052483        /* keep last */ 
    24062484        __NL80211_TXRATE_AFTER_LAST, 
    enum nl80211_ap_sme_features { 
    27862864 *      TX status to the socket error queue when requested with the 
    27872865 *      socket option. 
    27882866 * @NL80211_FEATURE_HT_IBSS: This driver supports IBSS with HT datarates. 
     2867 * @NL80211_FEATURE_INACTIVITY_TIMER: This driver takes care of freeing up 
     2868 *      the connected inactive stations in AP mode. 
    27892869 */ 
    27902870enum nl80211_feature_flags { 
    27912871        NL80211_FEATURE_SK_TX_STATUS    = 1 << 0, 
    27922872        NL80211_FEATURE_HT_IBSS         = 1 << 1, 
     2873        NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2, 
    27932874}; 
    27942875 
    27952876/** 
Note: See TracBrowser for help on using the repository browser.