qca-vendor.h 141 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367
  1. /*
  2. * Qualcomm Atheros OUI and vendor specific assignments
  3. * Copyright (c) 2014-2015, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef QCA_VENDOR_H
  9. #define QCA_VENDOR_H
  10. /*
  11. * This file is a registry of identifier assignments from the Qualcomm Atheros
  12. * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers
  13. * can be assigned through normal review process for changes to the upstream
  14. * hostap.git repository.
  15. */
  16. #define OUI_QCA 0x001374
  17. /**
  18. * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs
  19. */
  20. enum qca_radiotap_vendor_ids {
  21. QCA_RADIOTAP_VID_WLANTEST = 0,
  22. };
  23. /**
  24. * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers
  25. *
  26. * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0
  27. *
  28. * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event
  29. *
  30. * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use
  31. * internal BSS-selection. This command uses
  32. * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy
  33. * for the current connection (i.e., changes policy set by the nl80211
  34. * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be
  35. * included to indicate which BSS to use in case roaming is disabled.
  36. *
  37. * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency
  38. * ranges to avoid to reduce issues due to interference or internal
  39. * co-existence information in the driver. The event data structure is
  40. * defined in struct qca_avoid_freq_list.
  41. *
  42. * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support
  43. * for DFS offloading.
  44. *
  45. * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass
  46. * NAN Request/Response and NAN Indication messages. These messages are
  47. * interpreted between the framework and the firmware component.
  48. *
  49. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be
  50. * used to configure PMK to the driver even when not connected. This can
  51. * be used to request offloading of key management operations. Only used
  52. * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
  53. *
  54. * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of
  55. * NL80211_CMD_ROAM event with optional attributes including information
  56. * from offloaded key management operation. Uses
  57. * enum qca_wlan_vendor_attr_roam_auth attributes. Only used
  58. * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD.
  59. *
  60. * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to
  61. * invoke the ACS function in device and pass selected channels to
  62. * hostapd.
  63. *
  64. * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features
  65. * supported by the driver. enum qca_wlan_vendor_features defines
  66. * the possible features.
  67. *
  68. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver,
  69. * which supports DFS offloading, to indicate a channel availability check
  70. * start.
  71. *
  72. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver,
  73. * which supports DFS offloading, to indicate a channel availability check
  74. * completion.
  75. *
  76. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver,
  77. * which supports DFS offloading, to indicate that the channel availability
  78. * check aborted, no change to the channel status.
  79. *
  80. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by
  81. * driver, which supports DFS offloading, to indicate that the
  82. * Non-Occupancy Period for this channel is over, channel becomes usable.
  83. *
  84. * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver,
  85. * which supports DFS offloading, to indicate a radar pattern has been
  86. * detected. The channel is now unusable.
  87. *
  88. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to
  89. * start the P2P Listen offload function in device and pass the listen
  90. * channel, period, interval, count, device types, and vendor specific
  91. * information elements to the device driver and firmware.
  92. * Uses the attributes defines in
  93. * enum qca_wlan_vendor_attr_p2p_listen_offload.
  94. *
  95. * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to
  96. * indicate stop request/response of the P2P Listen offload function in
  97. * device. As an event, it indicates either the feature stopped after it
  98. * was already running or feature has actually failed to start. Uses the
  99. * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload.
  100. *
  101. * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts
  102. * beaconing, this sub command provides the driver, the frequencies on the
  103. * 5 GHz band to check for any radar activity. Driver selects one channel
  104. * from this priority list provided through
  105. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts
  106. * to check for radar activity on it. If no radar activity is detected
  107. * during the channel availability check period, driver internally switches
  108. * to the selected frequency of operation. If the frequency is zero, driver
  109. * internally selects a channel. The status of this conditional switch is
  110. * indicated through an event using the same sub command through
  111. * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are
  112. * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch.
  113. *
  114. * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the
  115. * attributes defined in enum qca_wlan_gpio_attr.
  116. *
  117. * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities.
  118. * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which
  119. * capabilities are to be fetched and other
  120. * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the
  121. * requested capabilities.
  122. *
  123. * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension.
  124. * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this
  125. * command and event.
  126. *
  127. * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for
  128. * indoor location features. Capabilities are reported in
  129. * QCA_WLAN_VENDOR_ATTR_LOC_CAPA.
  130. *
  131. * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM
  132. * (fine timing measurement) session with one or more peers.
  133. * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and
  134. * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS.
  135. * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT
  136. * events will be reported, followed by
  137. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate
  138. * end of session.
  139. * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6
  140. *
  141. * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session.
  142. * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with
  143. * status code indicating session was aborted.
  144. *
  145. * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement
  146. * results for one peer. Results are reported in
  147. * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS.
  148. *
  149. * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when
  150. * FTM session is finished, either successfully or aborted by
  151. * request.
  152. *
  153. * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder
  154. * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether
  155. * to enable or disable the responder. LCI/LCR reports can be
  156. * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and
  157. * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple
  158. * times to update the LCI/LCR reports.
  159. *
  160. * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of
  161. * arrival) measurement with a single peer. Specify peer MAC address in
  162. * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in
  163. * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel
  164. * scan results cache and use the frequency from there).
  165. * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE.
  166. * Measurement result is reported in
  167. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event.
  168. *
  169. * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify
  170. * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
  171. *
  172. * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports
  173. * the AOA measurement result.
  174. * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR.
  175. * success/failure status is reported in
  176. * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS.
  177. * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  178. * The antenna array(s) used in the measurement are reported in
  179. * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK.
  180. *
  181. * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given
  182. * data as per the given parameters.
  183. *
  184. * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a
  185. * specific chain.
  186. *
  187. * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level
  188. * configuration for a DMG RF sector. Specify sector index in
  189. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
  190. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules
  191. * to return sector information for in
  192. * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration
  193. * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the
  194. * exact time where information was captured in
  195. * QCA_WLAN_VENDOR_ATTR_TSF.
  196. *
  197. * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level
  198. * configuration for a DMG RF sector. Specify sector index in
  199. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in
  200. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration
  201. * for one or more DMG RF modules in
  202. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG.
  203. *
  204. * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected
  205. * DMG RF sector for a station. This is the sector that the HW
  206. * will use to communicate with the station. Specify the MAC address
  207. * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not
  208. * needed for unassociated station). Specify sector type to return in
  209. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected
  210. * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
  211. * Also return the exact time where the information was captured
  212. * in QCA_WLAN_VENDOR_ATTR_TSF.
  213. *
  214. * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the
  215. * selected DMG RF sector for a station. This is the sector that
  216. * the HW will use to communicate with the station.
  217. * Specify the MAC address of associated station/AP/PCP in
  218. * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in
  219. * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index
  220. * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX.
  221. * The selected sector will be locked such that it will not be
  222. * modified like it normally does (for example when station
  223. * moves around). To unlock the selected sector for a station
  224. * pass the special value 0xFFFF in the sector index. To unlock
  225. * all connected stations also pass a broadcast MAC address.
  226. *
  227. * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior
  228. * in the host driver. The different TDLS configurations are defined
  229. * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration.
  230. *
  231. * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was
  232. * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command
  233. * carries the scan cookie of the corresponding scan request. The scan
  234. * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE.
  235. *
  236. * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific
  237. * Absorption Rate (SAR) power limits. A critical regulation for
  238. * FCC compliance, OEMs require methods to set SAR limits on TX
  239. * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits
  240. * attributes are used with this command.
  241. *
  242. * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the
  243. * host driver for offloading the implementation of Auto Channel Selection
  244. * (ACS) to an external user space entity. This interface is used as the
  245. * event from the host driver to the user space entity and also as the
  246. * request from the user space entity to the host driver. The event from
  247. * the host driver is used by the user space entity as an indication to
  248. * start the ACS functionality. The attributes used by this event are
  249. * represented by the enum qca_wlan_vendor_attr_external_acs_event.
  250. * User space entity uses the same interface to inform the host driver with
  251. * selected channels after the ACS operation using the attributes defined
  252. * by enum qca_wlan_vendor_attr_external_acs_channels.
  253. *
  254. * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the
  255. * requisite information leading to a power save failure. The information
  256. * carried as part of this event is represented by the
  257. * enum qca_attr_chip_power_save_failure attributes.
  258. *
  259. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics
  260. * collection. Uses attributes defined in enum qca_attr_nud_stats_set.
  261. *
  262. * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These
  263. * statistics are represented by the enum qca_attr_nud_stats_get
  264. * attributes.
  265. *
  266. * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch
  267. * the BSS transition status, whether accept or reject, for a list of
  268. * candidate BSSIDs provided by the userspace. This uses the vendor
  269. * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and
  270. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify
  271. * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an
  272. * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in
  273. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response
  274. * the driver shall specify array of
  275. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and
  276. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in
  277. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO.
  278. */
  279. enum qca_nl80211_vendor_subcmds {
  280. QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
  281. QCA_NL80211_VENDOR_SUBCMD_TEST = 1,
  282. /* subcmds 2..8 not yet allocated */
  283. QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9,
  284. QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10,
  285. QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11,
  286. QCA_NL80211_VENDOR_SUBCMD_NAN = 12,
  287. QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13,
  288. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14,
  289. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15,
  290. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16,
  291. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17,
  292. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18,
  293. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19,
  294. QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20,
  295. QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21,
  296. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22,
  297. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23,
  298. QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24,
  299. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25,
  300. QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26,
  301. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27,
  302. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28,
  303. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29,
  304. QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30,
  305. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31,
  306. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32,
  307. QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33,
  308. QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34,
  309. QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35,
  310. QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36,
  311. QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37,
  312. QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38,
  313. QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39,
  314. QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40,
  315. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41,
  316. QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42,
  317. /* 43..49 - reserved for QCA */
  318. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50,
  319. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51,
  320. QCA_NL80211_VENDOR_SUBCMD_APFIND = 52,
  321. /* 53 - reserved - was used by QCA, but not in use anymore */
  322. QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54,
  323. QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55,
  324. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56,
  325. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57,
  326. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58,
  327. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59,
  328. QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60,
  329. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61,
  330. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62,
  331. QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63,
  332. QCA_NL80211_VENDOR_SUBCMD_ROAM = 64,
  333. QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65,
  334. QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66,
  335. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67,
  336. QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68,
  337. QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69,
  338. QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70,
  339. QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71,
  340. QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72,
  341. QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73,
  342. /* Wi-Fi configuration subcommands */
  343. QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74,
  344. QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75,
  345. /* 76-90 - reserved for QCA */
  346. QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91,
  347. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92,
  348. QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93,
  349. QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94,
  350. QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95,
  351. QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96,
  352. QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97,
  353. QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98,
  354. QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99,
  355. QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100,
  356. QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101,
  357. QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102,
  358. QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103,
  359. QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104,
  360. QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105,
  361. QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106,
  362. QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107,
  363. QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108,
  364. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109,
  365. /* 110..114 - reserved for QCA */
  366. QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115,
  367. /* 116..117 - reserved for QCA */
  368. QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118,
  369. QCA_NL80211_VENDOR_SUBCMD_TSF = 119,
  370. QCA_NL80211_VENDOR_SUBCMD_WISA = 120,
  371. /* 121 - reserved for QCA */
  372. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122,
  373. QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123,
  374. QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124,
  375. QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125,
  376. QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126,
  377. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127,
  378. /* FTM/indoor location subcommands */
  379. QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128,
  380. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129,
  381. QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130,
  382. QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131,
  383. QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132,
  384. QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133,
  385. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134,
  386. QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135,
  387. QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136,
  388. QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137,
  389. QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138,
  390. /* DMG low level RF sector operations */
  391. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139,
  392. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140,
  393. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141,
  394. QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142,
  395. QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143,
  396. /* 144 - reserved for QCA */
  397. QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145,
  398. QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146,
  399. QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147,
  400. QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148,
  401. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149,
  402. QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150,
  403. QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151,
  404. };
  405. enum qca_wlan_vendor_attr {
  406. QCA_WLAN_VENDOR_ATTR_INVALID = 0,
  407. /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */
  408. QCA_WLAN_VENDOR_ATTR_DFS = 1,
  409. /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */
  410. QCA_WLAN_VENDOR_ATTR_NAN = 2,
  411. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  412. QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3,
  413. /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */
  414. QCA_WLAN_VENDOR_ATTR_IFINDEX = 4,
  415. /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined
  416. * by enum qca_roaming_policy. */
  417. QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5,
  418. QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6,
  419. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  420. QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7,
  421. QCA_WLAN_VENDOR_ATTR_TEST = 8,
  422. /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */
  423. /* Unsigned 32-bit value. */
  424. QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9,
  425. /* Unsigned 32-bit value */
  426. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10,
  427. /* Unsigned 32-bit value */
  428. QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11,
  429. /* Unsigned 32-bit value from enum qca_set_band. */
  430. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12,
  431. /* Dummy (NOP) attribute for 64 bit padding */
  432. QCA_WLAN_VENDOR_ATTR_PAD = 13,
  433. /* Unique FTM session cookie (Unsigned 64 bit). Specified in
  434. * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in
  435. * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and
  436. * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE.
  437. */
  438. QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14,
  439. /* Indoor location capabilities, returned by
  440. * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA.
  441. * see enum qca_wlan_vendor_attr_loc_capa.
  442. */
  443. QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15,
  444. /* Array of nested attributes containing information about each peer
  445. * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info
  446. * for supported attributes for each peer.
  447. */
  448. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16,
  449. /* Array of nested attributes containing measurement results for
  450. * one or more peers, reported by the
  451. * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event.
  452. * See enum qca_wlan_vendor_attr_peer_result for list of supported
  453. * attributes.
  454. */
  455. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17,
  456. /* Flag attribute for enabling or disabling responder functionality. */
  457. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18,
  458. /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  459. * command to specify the LCI report that will be sent by
  460. * the responder during a measurement exchange. The format is
  461. * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10.
  462. */
  463. QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19,
  464. /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  465. * command to specify the location civic report that will
  466. * be sent by the responder during a measurement exchange.
  467. * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13.
  468. */
  469. QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20,
  470. /* Session/measurement completion status code,
  471. * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and
  472. * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT
  473. * see enum qca_vendor_attr_loc_session_status.
  474. */
  475. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21,
  476. /* Initial dialog token used by responder (0 if not specified),
  477. * unsigned 8 bit value.
  478. */
  479. QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22,
  480. /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS
  481. * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if
  482. * AOA measurements are needed as part of an FTM session.
  483. * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See
  484. * enum qca_wlan_vendor_attr_aoa_type.
  485. */
  486. QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23,
  487. /* A bit mask (unsigned 32 bit value) of antenna arrays used
  488. * by indoor location measurements. Refers to the antenna
  489. * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS.
  490. */
  491. QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24,
  492. /* AOA measurement data. Its contents depends on the AOA measurement
  493. * type and antenna array mask:
  494. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values,
  495. * phase of the strongest CIR path for each antenna in the measured
  496. * array(s).
  497. * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16
  498. * values, phase and amplitude of the strongest CIR path for each
  499. * antenna in the measured array(s).
  500. */
  501. QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25,
  502. /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  503. * to specify the chain number (unsigned 32 bit value) to inquire
  504. * the corresponding antenna RSSI value */
  505. QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26,
  506. /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command
  507. * to report the specific antenna RSSI value (unsigned 32 bit value) */
  508. QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27,
  509. /* Frequency in MHz, various uses. Unsigned 32 bit value */
  510. QCA_WLAN_VENDOR_ATTR_FREQ = 28,
  511. /* TSF timer value, unsigned 64 bit value.
  512. * May be returned by various commands.
  513. */
  514. QCA_WLAN_VENDOR_ATTR_TSF = 29,
  515. /* DMG RF sector index, unsigned 16 bit number. Valid values are
  516. * 0..127 for sector indices or 65535 as special value used to
  517. * unlock sector selection in
  518. * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR.
  519. */
  520. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30,
  521. /* DMG RF sector type, unsigned 8 bit value. One of the values
  522. * in enum qca_wlan_vendor_attr_dmg_rf_sector_type.
  523. */
  524. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31,
  525. /* Bitmask of DMG RF modules for which information is requested. Each
  526. * bit corresponds to an RF module with the same index as the bit
  527. * number. Unsigned 32 bit number but only low 8 bits can be set since
  528. * all DMG chips currently have up to 8 RF modules.
  529. */
  530. QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32,
  531. /* Array of nested attributes where each entry is DMG RF sector
  532. * configuration for a single RF module.
  533. * Attributes for each entry are taken from enum
  534. * qca_wlan_vendor_attr_dmg_rf_sector_cfg.
  535. * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG
  536. * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG.
  537. */
  538. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33,
  539. /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command
  540. * to report frame aggregation statistics to userspace.
  541. */
  542. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34,
  543. QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35,
  544. /* Unsigned 8-bit value representing MBO transition reason code as
  545. * provided by the AP used by subcommand
  546. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is
  547. * specified by the userspace in the request to the driver.
  548. */
  549. QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36,
  550. /* Array of nested attributes, BSSID and status code, used by subcommand
  551. * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each
  552. * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info.
  553. * The userspace space specifies the list/array of candidate BSSIDs in
  554. * the order of preference in the request. The driver specifies the
  555. * status code, for each BSSID in the list, in the response. The
  556. * acceptable candidates are listed in the order preferred by the
  557. * driver.
  558. */
  559. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37,
  560. /* keep last */
  561. QCA_WLAN_VENDOR_ATTR_AFTER_LAST,
  562. QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1,
  563. };
  564. enum qca_roaming_policy {
  565. QCA_ROAMING_NOT_ALLOWED,
  566. QCA_ROAMING_ALLOWED_WITHIN_ESS,
  567. };
  568. enum qca_wlan_vendor_attr_roam_auth {
  569. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0,
  570. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID,
  571. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE,
  572. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE,
  573. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED,
  574. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR,
  575. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK,
  576. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK,
  577. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS,
  578. /* keep last */
  579. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST,
  580. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX =
  581. QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1
  582. };
  583. enum qca_wlan_vendor_attr_p2p_listen_offload {
  584. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0,
  585. /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one
  586. * of the social channels.
  587. */
  588. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL,
  589. /* A 32-bit unsigned value; the P2P listen offload period (ms).
  590. */
  591. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD,
  592. /* A 32-bit unsigned value; the P2P listen interval duration (ms).
  593. */
  594. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL,
  595. /* A 32-bit unsigned value; number of interval times the firmware needs
  596. * to run the offloaded P2P listen operation before it stops.
  597. */
  598. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT,
  599. /* An array of arbitrary binary data with one or more 8-byte values.
  600. * The device types include both primary and secondary device types.
  601. */
  602. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES,
  603. /* An array of unsigned 8-bit characters; vendor information elements.
  604. */
  605. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE,
  606. /* A 32-bit unsigned value; a control flag to indicate whether listen
  607. * results need to be flushed to wpa_supplicant.
  608. */
  609. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG,
  610. /* A 8-bit unsigned value; reason code for P2P listen offload stop
  611. * event.
  612. */
  613. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON,
  614. /* keep last */
  615. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST,
  616. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX =
  617. QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1
  618. };
  619. enum qca_wlan_vendor_attr_acs_offload {
  620. QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0,
  621. QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL,
  622. QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL,
  623. QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE,
  624. QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED,
  625. QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED,
  626. QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED,
  627. QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH,
  628. QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST,
  629. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL,
  630. QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL,
  631. QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST,
  632. /* keep last */
  633. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,
  634. QCA_WLAN_VENDOR_ATTR_ACS_MAX =
  635. QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1
  636. };
  637. enum qca_wlan_vendor_acs_hw_mode {
  638. QCA_ACS_MODE_IEEE80211B,
  639. QCA_ACS_MODE_IEEE80211G,
  640. QCA_ACS_MODE_IEEE80211A,
  641. QCA_ACS_MODE_IEEE80211AD,
  642. QCA_ACS_MODE_IEEE80211ANY,
  643. };
  644. /**
  645. * enum qca_wlan_vendor_features - Vendor device/driver feature flags
  646. *
  647. * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key
  648. * management offload, a mechanism where the station's firmware
  649. * does the exchange with the AP to establish the temporal keys
  650. * after roaming, rather than having the user space wpa_supplicant do it.
  651. * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic
  652. * band selection based on channel selection results.
  653. * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports
  654. * simultaneous off-channel operations.
  655. * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P
  656. * Listen offload; a mechanism where the station's firmware takes care of
  657. * responding to incoming Probe Request frames received from other P2P
  658. * Devices whilst in Listen state, rather than having the user space
  659. * wpa_supplicant do it. Information from received P2P requests are
  660. * forwarded from firmware to host whenever the host processor wakes up.
  661. * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits
  662. */
  663. enum qca_wlan_vendor_features {
  664. QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0,
  665. QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1,
  666. QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2,
  667. QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3,
  668. NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */
  669. };
  670. /**
  671. * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication
  672. *
  673. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to
  674. * the offloaded data.
  675. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded
  676. * data.
  677. * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload
  678. * indication.
  679. */
  680. enum qca_wlan_vendor_attr_data_offload_ind {
  681. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0,
  682. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION,
  683. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL,
  684. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT,
  685. /* keep last */
  686. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST,
  687. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX =
  688. QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1
  689. };
  690. enum qca_vendor_attr_get_preferred_freq_list {
  691. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID,
  692. /* A 32-unsigned value; the interface type/mode for which the preferred
  693. * frequency list is requested (see enum qca_iface_type for possible
  694. * values); used in GET_PREFERRED_FREQ_LIST command from user-space to
  695. * kernel and in the kernel response back to user-space.
  696. */
  697. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE,
  698. /* An array of 32-unsigned values; values are frequency (MHz); sent
  699. * from kernel space to user space.
  700. */
  701. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST,
  702. /* keep last */
  703. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST,
  704. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX =
  705. QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1
  706. };
  707. enum qca_vendor_attr_probable_oper_channel {
  708. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID,
  709. /* 32-bit unsigned value; indicates the connection/iface type likely to
  710. * come on this channel (see enum qca_iface_type).
  711. */
  712. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE,
  713. /* 32-bit unsigned value; the frequency (MHz) of the probable channel */
  714. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ,
  715. /* keep last */
  716. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST,
  717. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX =
  718. QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1
  719. };
  720. enum qca_iface_type {
  721. QCA_IFACE_TYPE_STA,
  722. QCA_IFACE_TYPE_AP,
  723. QCA_IFACE_TYPE_P2P_CLIENT,
  724. QCA_IFACE_TYPE_P2P_GO,
  725. QCA_IFACE_TYPE_IBSS,
  726. QCA_IFACE_TYPE_TDLS,
  727. };
  728. enum qca_set_band {
  729. QCA_SETBAND_AUTO,
  730. QCA_SETBAND_5G,
  731. QCA_SETBAND_2G,
  732. };
  733. /**
  734. * enum qca_access_policy - Access control policy
  735. *
  736. * Access control policy is applied on the configured IE
  737. * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE).
  738. * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY.
  739. *
  740. * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match
  741. * the specific configuration (IE) set, i.e., allow all the
  742. * connections which do not match the configuration.
  743. * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match
  744. * the specific configuration (IE) set, i.e., deny all the
  745. * connections which do not match the configuration.
  746. */
  747. enum qca_access_policy {
  748. QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED,
  749. QCA_ACCESS_POLICY_DENY_UNLESS_LISTED,
  750. };
  751. /**
  752. * enum qca_vendor_attr_get_tsf: Vendor attributes for TSF capture
  753. * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: enum qca_tsf_operation (u32)
  754. * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Unsigned 64 bit TSF timer value
  755. * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Unsigned 64 bit Synchronized
  756. * SOC timer value at TSF capture
  757. */
  758. enum qca_vendor_attr_tsf_cmd {
  759. QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0,
  760. QCA_WLAN_VENDOR_ATTR_TSF_CMD,
  761. QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE,
  762. QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE,
  763. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST,
  764. QCA_WLAN_VENDOR_ATTR_TSF_MAX =
  765. QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1
  766. };
  767. /**
  768. * enum qca_tsf_operation: TSF driver commands
  769. * @QCA_TSF_CAPTURE: Initiate TSF Capture
  770. * @QCA_TSF_GET: Get TSF capture value
  771. * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value
  772. */
  773. enum qca_tsf_cmd {
  774. QCA_TSF_CAPTURE,
  775. QCA_TSF_GET,
  776. QCA_TSF_SYNC_GET,
  777. };
  778. /**
  779. * enum qca_vendor_attr_wisa_cmd
  780. * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32)
  781. * WISA setup vendor commands
  782. */
  783. enum qca_vendor_attr_wisa_cmd {
  784. QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0,
  785. QCA_WLAN_VENDOR_ATTR_WISA_MODE,
  786. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST,
  787. QCA_WLAN_VENDOR_ATTR_WISA_MAX =
  788. QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1
  789. };
  790. /* IEEE 802.11 Vendor Specific elements */
  791. /**
  792. * enum qca_vendor_element_id - QCA Vendor Specific element types
  793. *
  794. * These values are used to identify QCA Vendor Specific elements. The
  795. * payload of the element starts with the three octet OUI (OUI_QCA) and
  796. * is followed by a single octet type which is defined by this enum.
  797. *
  798. * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list.
  799. * This element can be used to specify preference order for supported
  800. * channels. The channels in this list are in preference order (the first
  801. * one has the highest preference) and are described as a pair of
  802. * (global) Operating Class and Channel Number (each one octet) fields.
  803. *
  804. * This extends the standard P2P functionality by providing option to have
  805. * more than one preferred operating channel. When this element is present,
  806. * it replaces the preference indicated in the Operating Channel attribute.
  807. * For supporting other implementations, the Operating Channel attribute is
  808. * expected to be used with the highest preference channel. Similarly, all
  809. * the channels included in this Preferred channel list element are
  810. * expected to be included in the Channel List attribute.
  811. *
  812. * This vendor element may be included in GO Negotiation Request, P2P
  813. * Invitation Request, and Provision Discovery Request frames.
  814. *
  815. * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element.
  816. * This element can be used for pre-standard publication testing of HE
  817. * before P802.11ax draft assigns the element ID. The payload of this
  818. * vendor specific element is defined by the latest P802.11ax draft.
  819. * Please note that the draft is still work in progress and this element
  820. * payload is subject to change.
  821. *
  822. * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element.
  823. * This element can be used for pre-standard publication testing of HE
  824. * before P802.11ax draft assigns the element ID. The payload of this
  825. * vendor specific element is defined by the latest P802.11ax draft.
  826. * Please note that the draft is still work in progress and this element
  827. * payload is subject to change.
  828. *
  829. * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set
  830. * element).
  831. * This element can be used for pre-standard publication testing of HE
  832. * before P802.11ax draft assigns the element ID extension. The payload of
  833. * this vendor specific element is defined by the latest P802.11ax draft
  834. * (not including the Element ID Extension field). Please note that the
  835. * draft is still work in progress and this element payload is subject to
  836. * change.
  837. *
  838. * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element.
  839. * This element can be used for pre-standard publication testing of HE
  840. * before P802.11ax draft assigns the element ID extension. The payload of
  841. * this vendor specific element is defined by the latest P802.11ax draft
  842. * (not including the Element ID Extension field). Please note that the
  843. * draft is still work in progress and this element payload is subject to
  844. * change.
  845. *
  846. * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element.
  847. * This element can be used for pre-standard publication testing of HE
  848. * before P802.11ax draft assigns the element ID extension. The payload of
  849. * this vendor specific element is defined by the latest P802.11ax draft
  850. * (not including the Element ID Extension field). Please note that the
  851. * draft is still work in progress and this element payload is subject to
  852. * change.
  853. */
  854. enum qca_vendor_element_id {
  855. QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0,
  856. QCA_VENDOR_ELEM_HE_CAPAB = 1,
  857. QCA_VENDOR_ELEM_HE_OPER = 2,
  858. QCA_VENDOR_ELEM_RAPS = 3,
  859. QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4,
  860. QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5,
  861. };
  862. /**
  863. * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes
  864. *
  865. * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan
  866. * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes
  867. * with frequencies to be scanned (in MHz)
  868. * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned
  869. * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported
  870. * rates to be included
  871. * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests
  872. * at non CCK rate in 2GHz band
  873. * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags
  874. * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the
  875. * driver for the specific scan request
  876. * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan
  877. * request decoded as in enum scan_status
  878. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation
  879. * scan flag is set
  880. * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with
  881. * randomisation
  882. * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the
  883. * specific BSSID to scan for.
  884. */
  885. enum qca_wlan_vendor_attr_scan {
  886. QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0,
  887. QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1,
  888. QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2,
  889. QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3,
  890. QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4,
  891. QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5,
  892. QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6,
  893. QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7,
  894. QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8,
  895. QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9,
  896. QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10,
  897. QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11,
  898. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST,
  899. QCA_WLAN_VENDOR_ATTR_SCAN_MAX =
  900. QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1
  901. };
  902. /**
  903. * enum scan_status - Specifies the valid values the vendor scan attribute
  904. * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take
  905. *
  906. * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with
  907. * new scan results
  908. * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between
  909. */
  910. enum scan_status {
  911. VENDOR_SCAN_STATUS_NEW_RESULTS,
  912. VENDOR_SCAN_STATUS_ABORTED,
  913. VENDOR_SCAN_STATUS_MAX,
  914. };
  915. /**
  916. * enum qca_vendor_attr_ota_test - Specifies the values for vendor
  917. * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST
  918. * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test
  919. */
  920. enum qca_vendor_attr_ota_test {
  921. QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID,
  922. /* 8-bit unsigned value to indicate if OTA test is enabled */
  923. QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE,
  924. /* keep last */
  925. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST,
  926. QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX =
  927. QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1
  928. };
  929. /**
  930. * enum qca_vendor_attr_txpower_scale - vendor sub commands index
  931. *
  932. * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value
  933. */
  934. enum qca_vendor_attr_txpower_scale {
  935. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID,
  936. /* 8-bit unsigned value to indicate the scaling of tx power */
  937. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE,
  938. /* keep last */
  939. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST,
  940. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX =
  941. QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1
  942. };
  943. /**
  944. * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease
  945. *
  946. * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB.
  947. */
  948. enum qca_vendor_attr_txpower_decr_db {
  949. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID,
  950. /* 8-bit unsigned value to indicate the reduction of TX power in dB for
  951. * a virtual interface. */
  952. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB,
  953. /* keep last */
  954. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST,
  955. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX =
  956. QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1
  957. };
  958. /* Attributes for data used by
  959. * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and
  960. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands.
  961. */
  962. enum qca_wlan_vendor_attr_config {
  963. QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0,
  964. /* Unsigned 32-bit value to set the DTIM period.
  965. * Whether the wifi chipset wakes at every dtim beacon or a multiple of
  966. * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3
  967. * DTIM beacons.
  968. */
  969. QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1,
  970. /* Unsigned 32-bit value to set the wifi_iface stats averaging factor
  971. * used to calculate statistics like average the TSF offset or average
  972. * number of frame leaked.
  973. * For instance, upon Beacon frame reception:
  974. * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000
  975. * For instance, when evaluating leaky APs:
  976. * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000
  977. */
  978. QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2,
  979. /* Unsigned 32-bit value to configure guard time, i.e., when
  980. * implementing IEEE power management based on frame control PM bit, how
  981. * long the driver waits before shutting down the radio and after
  982. * receiving an ACK frame for a Data frame with PM bit set.
  983. */
  984. QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3,
  985. /* Unsigned 32-bit value to change the FTM capability dynamically */
  986. QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4,
  987. /* Unsigned 16-bit value to configure maximum TX rate dynamically */
  988. QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5,
  989. /* Unsigned 32-bit value to configure the number of continuous
  990. * Beacon Miss which shall be used by the firmware to penalize
  991. * the RSSI.
  992. */
  993. QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6,
  994. /* Unsigned 8-bit value to configure the channel avoidance indication
  995. * behavior. Firmware to send only one indication and ignore duplicate
  996. * indications when set to avoid multiple Apps wakeups.
  997. */
  998. QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7,
  999. /* 8-bit unsigned value to configure the maximum TX MPDU for
  1000. * aggregation. */
  1001. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8,
  1002. /* 8-bit unsigned value to configure the maximum RX MPDU for
  1003. * aggregation. */
  1004. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9,
  1005. /* 8-bit unsigned value to configure the Non aggregrate/11g sw
  1006. * retry threshold (0 disable, 31 max). */
  1007. QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10,
  1008. /* 8-bit unsigned value to configure the aggregrate sw
  1009. * retry threshold (0 disable, 31 max). */
  1010. QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11,
  1011. /* 8-bit unsigned value to configure the MGMT frame
  1012. * retry threshold (0 disable, 31 max). */
  1013. QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12,
  1014. /* 8-bit unsigned value to configure the CTRL frame
  1015. * retry threshold (0 disable, 31 max). */
  1016. QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13,
  1017. /* 8-bit unsigned value to configure the propagation delay for
  1018. * 2G/5G band (0~63, units in us) */
  1019. QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14,
  1020. /* Unsigned 32-bit value to configure the number of unicast TX fail
  1021. * packet count. The peer is disconnected once this threshold is
  1022. * reached. */
  1023. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15,
  1024. /* Attribute used to set scan default IEs to the driver.
  1025. *
  1026. * These IEs can be used by scan operations that will be initiated by
  1027. * the driver/firmware.
  1028. *
  1029. * For further scan requests coming to the driver, these IEs should be
  1030. * merged with the IEs received along with scan request coming to the
  1031. * driver. If a particular IE is present in the scan default IEs but not
  1032. * present in the scan request, then that IE should be added to the IEs
  1033. * sent in the Probe Request frames for that scan request. */
  1034. QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16,
  1035. /* Unsigned 32-bit attribute for generic commands */
  1036. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17,
  1037. /* Unsigned 32-bit value attribute for generic commands */
  1038. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18,
  1039. /* Unsigned 32-bit data attribute for generic command response */
  1040. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19,
  1041. /* Unsigned 32-bit length attribute for
  1042. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
  1043. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20,
  1044. /* Unsigned 32-bit flags attribute for
  1045. * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA */
  1046. QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21,
  1047. /* Unsigned 32-bit, defining the access policy.
  1048. * See enum qca_access_policy. Used with
  1049. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. */
  1050. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22,
  1051. /* Sets the list of full set of IEs for which a specific access policy
  1052. * has to be applied. Used along with
  1053. * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access.
  1054. * Zero length payload can be used to clear this access constraint. */
  1055. QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23,
  1056. /* Unsigned 32-bit, specifies the interface index (netdev) for which the
  1057. * corresponding configurations are applied. If the interface index is
  1058. * not specified, the configurations are attributed to the respective
  1059. * wiphy. */
  1060. QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24,
  1061. /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */
  1062. QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25,
  1063. /* 8-bit unsigned value to configure the driver and below layers to
  1064. * ignore the assoc disallowed set by APs while connecting
  1065. * 1-Ignore, 0-Don't ignore */
  1066. QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26,
  1067. /* 32-bit unsigned value to trigger antenna diversity features:
  1068. * 1-Enable, 0-Disable */
  1069. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27,
  1070. /* 32-bit unsigned value to configure specific chain antenna */
  1071. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28,
  1072. /* 32-bit unsigned value to trigger cycle selftest
  1073. * 1-Enable, 0-Disable */
  1074. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29,
  1075. /* 32-bit unsigned to configure the cycle time of selftest
  1076. * the unit is micro-second */
  1077. QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30,
  1078. /* 32-bit unsigned value to set reorder timeout for AC_VO */
  1079. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31,
  1080. /* 32-bit unsigned value to set reorder timeout for AC_VI */
  1081. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32,
  1082. /* 32-bit unsigned value to set reorder timeout for AC_BE */
  1083. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33,
  1084. /* 32-bit unsigned value to set reorder timeout for AC_BK */
  1085. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34,
  1086. /* 6-byte MAC address to point out the specific peer */
  1087. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35,
  1088. /* 32-bit unsigned value to set window size for specific peer */
  1089. QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36,
  1090. /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */
  1091. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37,
  1092. /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */
  1093. QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38,
  1094. /* keep last */
  1095. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
  1096. QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
  1097. QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1,
  1098. };
  1099. /**
  1100. * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration
  1101. */
  1102. enum qca_wlan_vendor_attr_sap_config {
  1103. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0,
  1104. /* 1 - reserved for QCA */
  1105. /* List of frequencies on which AP is expected to operate.
  1106. * This is irrespective of ACS configuration. This list is a priority
  1107. * based one and is looked for before the AP is created to ensure the
  1108. * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in
  1109. * the system.
  1110. */
  1111. QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2,
  1112. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST,
  1113. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX =
  1114. QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1,
  1115. };
  1116. /**
  1117. * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP
  1118. * conditional channel switch
  1119. */
  1120. enum qca_wlan_vendor_attr_sap_conditional_chan_switch {
  1121. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0,
  1122. /* Priority based frequency list (an array of u32 values in host byte
  1123. * order) */
  1124. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1,
  1125. /* Status of the conditional switch (u32).
  1126. * 0: Success, Non-zero: Failure
  1127. */
  1128. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2,
  1129. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST,
  1130. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX =
  1131. QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1,
  1132. };
  1133. /**
  1134. * enum qca_wlan_gpio_attr - Parameters for GPIO configuration
  1135. */
  1136. enum qca_wlan_gpio_attr {
  1137. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0,
  1138. /* Unsigned 32-bit attribute for GPIO command */
  1139. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND,
  1140. /* Unsigned 32-bit attribute for GPIO PIN number to configure */
  1141. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM,
  1142. /* Unsigned 32-bit attribute for GPIO value to configure */
  1143. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE,
  1144. /* Unsigned 32-bit attribute for GPIO pull type */
  1145. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE,
  1146. /* Unsigned 32-bit attribute for GPIO interrupt mode */
  1147. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE,
  1148. /* keep last */
  1149. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST,
  1150. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX =
  1151. QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1
  1152. };
  1153. /**
  1154. * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability
  1155. */
  1156. enum qca_wlan_vendor_attr_get_hw_capability {
  1157. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID,
  1158. /* Antenna isolation
  1159. * An attribute used in the response.
  1160. * The content of this attribute is encoded in a byte array. Each byte
  1161. * value is an antenna isolation value. The array length is the number
  1162. * of antennas.
  1163. */
  1164. QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION,
  1165. /* Request HW capability
  1166. * An attribute used in the request.
  1167. * The content of this attribute is a u32 array for one or more of
  1168. * hardware capabilities (attribute IDs) that are being requested. Each
  1169. * u32 value has a value from this
  1170. * enum qca_wlan_vendor_attr_get_hw_capability
  1171. * identifying which capabilities are requested.
  1172. */
  1173. QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY,
  1174. /* keep last */
  1175. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST,
  1176. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX =
  1177. QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1,
  1178. };
  1179. /**
  1180. * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring
  1181. * offload which is an extension for LL_STATS.
  1182. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms.
  1183. * If MAC counters do not exceed the threshold, FW will report monitored
  1184. * link layer counters periodically as this setting. The first report is
  1185. * always triggered by this timer.
  1186. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99).
  1187. * For each MAC layer counter, FW holds two copies. One is the current value.
  1188. * The other is the last report. Once a current counter's increment is larger
  1189. * than the threshold, FW will indicate that counter to host even if the
  1190. * monitoring timer does not expire.
  1191. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change
  1192. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU
  1193. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same
  1194. * failure code.
  1195. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code
  1196. * 1: TX packet discarded
  1197. * 2: No ACK
  1198. * 3: Postpone
  1199. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address
  1200. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state
  1201. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold.
  1202. * Threshold for all monitored parameters. If per counter dedicated threshold
  1203. * is not enabled, this threshold will take effect.
  1204. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this
  1205. * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0.
  1206. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID
  1207. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID
  1208. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters
  1209. * Bit0: TX counter unit in MSDU
  1210. * Bit1: TX counter unit in MPDU
  1211. * Bit2: TX counter unit in PPDU
  1212. * Bit3: TX counter unit in byte
  1213. * Bit4: Dropped MSDUs
  1214. * Bit5: Dropped Bytes
  1215. * Bit6: MPDU retry counter
  1216. * Bit7: MPDU failure counter
  1217. * Bit8: PPDU failure counter
  1218. * Bit9: MPDU aggregation counter
  1219. * Bit10: MCS counter for ACKed MPDUs
  1220. * Bit11: MCS counter for Failed MPDUs
  1221. * Bit12: TX Delay counter
  1222. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters
  1223. * Bit0: MAC RX counter unit in MPDU
  1224. * Bit1: MAC RX counter unit in byte
  1225. * Bit2: PHY RX counter unit in PPDU
  1226. * Bit3: PHY RX counter unit in byte
  1227. * Bit4: Disorder counter
  1228. * Bit5: Retry counter
  1229. * Bit6: Duplication counter
  1230. * Bit7: Discard counter
  1231. * Bit8: MPDU aggregation size counter
  1232. * Bit9: MCS counter
  1233. * Bit10: Peer STA power state change (wake to sleep) counter
  1234. * Bit11: Peer STA power save counter, total time in PS mode
  1235. * Bit12: Probe request counter
  1236. * Bit13: Other management frames counter
  1237. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA
  1238. * Bit0: Idle time
  1239. * Bit1: TX time
  1240. * Bit2: time RX in current bss
  1241. * Bit3: Out of current bss time
  1242. * Bit4: Wireless medium busy time
  1243. * Bit5: RX in bad condition time
  1244. * Bit6: TX in bad condition time
  1245. * Bit7: time wlan card not available
  1246. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal
  1247. * Bit0: Per channel SNR counter
  1248. * Bit1: Per channel noise floor counter
  1249. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers
  1250. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels
  1251. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats
  1252. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats
  1253. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats
  1254. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs
  1255. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs
  1256. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs
  1257. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data
  1258. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets
  1259. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped
  1260. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK
  1261. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed
  1262. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed
  1263. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM:
  1264. * aggregation stats buffer length
  1265. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats
  1266. * buffer for ACKed MPDUs.
  1267. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats
  1268. * buffer for failed MPDUs.
  1269. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE:
  1270. * length of delay stats array.
  1271. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats
  1272. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs
  1273. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs
  1274. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats
  1275. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received
  1276. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received
  1277. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received
  1278. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received
  1279. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost
  1280. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets
  1281. * flagged as retransmissions
  1282. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets
  1283. * flagged as duplicated
  1284. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX
  1285. * packets discarded
  1286. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation
  1287. * stats buffer.
  1288. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs
  1289. * stats buffer.
  1290. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer
  1291. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer
  1292. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep
  1293. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time
  1294. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe
  1295. * requests received
  1296. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt
  1297. * frames received
  1298. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time
  1299. * there is no TX, nor RX, nor interference.
  1300. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time
  1301. * transmitting packets.
  1302. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time
  1303. * for receiving.
  1304. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time
  1305. * interference detected.
  1306. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time
  1307. * receiving packets with errors.
  1308. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time
  1309. * TX no-ACK.
  1310. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time
  1311. * the chip is unable to work in normal conditions.
  1312. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time
  1313. * receiving packets in current BSS.
  1314. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time
  1315. * receiving packets not in current BSS.
  1316. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas
  1317. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL:
  1318. * This is a container for per antenna signal stats.
  1319. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value
  1320. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value
  1321. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon
  1322. * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon
  1323. */
  1324. enum qca_wlan_vendor_attr_ll_stats_ext {
  1325. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0,
  1326. /* Attributes for configurations */
  1327. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD,
  1328. QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD,
  1329. /* Peer STA power state change */
  1330. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG,
  1331. /* TX failure event */
  1332. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID,
  1333. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU,
  1334. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS,
  1335. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE,
  1336. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS,
  1337. /* MAC counters */
  1338. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL,
  1339. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE,
  1340. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID,
  1341. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID,
  1342. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP,
  1343. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP,
  1344. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP,
  1345. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP,
  1346. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM,
  1347. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM,
  1348. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS,
  1349. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER,
  1350. /* Sub-attributes for PEER_AC_TX */
  1351. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU,
  1352. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU,
  1353. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU,
  1354. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES,
  1355. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP,
  1356. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES,
  1357. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY,
  1358. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK,
  1359. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK,
  1360. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM,
  1361. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM,
  1362. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM,
  1363. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR,
  1364. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS,
  1365. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS,
  1366. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE,
  1367. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY,
  1368. /* Sub-attributes for PEER_AC_RX */
  1369. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU,
  1370. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES,
  1371. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU,
  1372. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES,
  1373. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST,
  1374. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY,
  1375. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP,
  1376. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD,
  1377. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM,
  1378. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM,
  1379. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS,
  1380. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR,
  1381. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES,
  1382. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION,
  1383. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ,
  1384. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT,
  1385. /* Sub-attributes for CCA_BSS */
  1386. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME,
  1387. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME,
  1388. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME,
  1389. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY,
  1390. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD,
  1391. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD,
  1392. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL,
  1393. /* sub-attribute for BSS_RX_TIME */
  1394. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME,
  1395. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME,
  1396. /* Sub-attributes for PEER_SIGNAL */
  1397. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM,
  1398. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL,
  1399. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR,
  1400. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF,
  1401. /* Sub-attributes for IFACE_BSS */
  1402. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON,
  1403. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON,
  1404. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST,
  1405. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX =
  1406. QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1
  1407. };
  1408. /* Attributes for FTM commands and events */
  1409. /**
  1410. * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities
  1411. *
  1412. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See
  1413. * enum qca_wlan_vendor_attr_loc_capa_flags.
  1414. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number
  1415. * of measurement sessions that can run concurrently.
  1416. * Default is one session (no session concurrency).
  1417. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique
  1418. * peers that are supported in running sessions. For example,
  1419. * if the value is 8 and maximum number of sessions is 2, you can
  1420. * have one session with 8 unique peers, or 2 sessions with 4 unique
  1421. * peers each, and so on.
  1422. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number
  1423. * of bursts per peer, as an exponent (2^value). Default is 0,
  1424. * meaning no multi-burst support.
  1425. * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number
  1426. * of measurement exchanges allowed in a single burst.
  1427. * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement
  1428. * types. A bit mask (unsigned 32 bit value), each bit corresponds
  1429. * to an AOA type as defined by enum qca_vendor_attr_aoa_type.
  1430. */
  1431. enum qca_wlan_vendor_attr_loc_capa {
  1432. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID,
  1433. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS,
  1434. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS,
  1435. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS,
  1436. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP,
  1437. QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST,
  1438. QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES,
  1439. /* keep last */
  1440. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST,
  1441. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX =
  1442. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1,
  1443. };
  1444. /**
  1445. * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags
  1446. *
  1447. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver
  1448. * can be configured as an FTM responder (for example, an AP that
  1449. * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER
  1450. * will be supported if set.
  1451. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver
  1452. * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION
  1453. * will be supported if set.
  1454. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder
  1455. * supports immediate (ASAP) response.
  1456. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone
  1457. * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS.
  1458. * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports
  1459. * requesting AOA measurements as part of an FTM session.
  1460. */
  1461. enum qca_wlan_vendor_attr_loc_capa_flags {
  1462. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0,
  1463. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1,
  1464. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2,
  1465. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3,
  1466. QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4,
  1467. };
  1468. /**
  1469. * enum qca_wlan_vendor_attr_ftm_peer_info: Information about
  1470. * a single peer in a measurement session.
  1471. *
  1472. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer.
  1473. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related
  1474. * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags.
  1475. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of
  1476. * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0
  1477. * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for
  1478. * list of supported attributes.
  1479. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for
  1480. * secure measurement.
  1481. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA
  1482. * measurement every <value> bursts. If 0 or not specified,
  1483. * AOA measurements will be disabled for this peer.
  1484. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where
  1485. * the measurement frames are exchanged. Optional; if not
  1486. * specified, try to locate the peer in the kernel scan
  1487. * results cache and use frequency from there.
  1488. */
  1489. enum qca_wlan_vendor_attr_ftm_peer_info {
  1490. QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID,
  1491. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR,
  1492. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS,
  1493. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS,
  1494. QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID,
  1495. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD,
  1496. QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ,
  1497. /* keep last */
  1498. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST,
  1499. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX =
  1500. QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1,
  1501. };
  1502. /**
  1503. * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags,
  1504. * per-peer
  1505. *
  1506. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request
  1507. * immediate (ASAP) response from peer.
  1508. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request
  1509. * LCI report from peer. The LCI report includes the absolute
  1510. * location of the peer in "official" coordinates (similar to GPS).
  1511. * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information.
  1512. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request
  1513. * Location civic report from peer. The LCR includes the location
  1514. * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0,
  1515. * 11.24.6.7 for more information.
  1516. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set,
  1517. * request a secure measurement.
  1518. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided.
  1519. */
  1520. enum qca_wlan_vendor_attr_ftm_peer_meas_flags {
  1521. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0,
  1522. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1,
  1523. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2,
  1524. QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3,
  1525. };
  1526. /**
  1527. * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters
  1528. *
  1529. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements
  1530. * to perform in a single burst.
  1531. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to
  1532. * perform, specified as an exponent (2^value).
  1533. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst
  1534. * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167.
  1535. * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts,
  1536. * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must
  1537. * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION.
  1538. */
  1539. enum qca_wlan_vendor_attr_ftm_meas_param {
  1540. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID,
  1541. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST,
  1542. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP,
  1543. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION,
  1544. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD,
  1545. /* keep last */
  1546. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST,
  1547. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX =
  1548. QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1,
  1549. };
  1550. /**
  1551. * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results
  1552. *
  1553. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported
  1554. * peer.
  1555. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement
  1556. * request for this peer.
  1557. * See enum qca_wlan_vendor_attr_ftm_peer_result_status.
  1558. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related
  1559. * to measurement results for this peer.
  1560. * See enum qca_wlan_vendor_attr_ftm_peer_result_flags.
  1561. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when
  1562. * request failed and peer requested not to send an additional request
  1563. * for this number of seconds.
  1564. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received
  1565. * from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  1566. * 9.4.2.22.10.
  1567. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when
  1568. * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0,
  1569. * 9.4.2.22.13.
  1570. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer
  1571. * overridden some measurement request parameters. See
  1572. * enum qca_wlan_vendor_attr_ftm_meas_param.
  1573. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement
  1574. * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT.
  1575. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement
  1576. * results. Each entry is a nested attribute defined
  1577. * by enum qca_wlan_vendor_attr_ftm_meas.
  1578. */
  1579. enum qca_wlan_vendor_attr_ftm_peer_result {
  1580. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID,
  1581. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR,
  1582. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS,
  1583. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS,
  1584. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS,
  1585. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI,
  1586. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR,
  1587. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS,
  1588. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS,
  1589. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS,
  1590. /* keep last */
  1591. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST,
  1592. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX =
  1593. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1,
  1594. };
  1595. /**
  1596. * enum qca_wlan_vendor_attr_ftm_peer_result_status
  1597. *
  1598. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results
  1599. * will be provided. Peer may have overridden some measurement parameters,
  1600. * in which case overridden parameters will be report by
  1601. * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute.
  1602. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable
  1603. * of performing the measurement request. No more results will be sent
  1604. * for this peer in this session.
  1605. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request
  1606. * failed, and requested not to send an additional request for number
  1607. * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS
  1608. * attribute.
  1609. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation
  1610. * failed. Request was not sent over the air.
  1611. */
  1612. enum qca_wlan_vendor_attr_ftm_peer_result_status {
  1613. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK,
  1614. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE,
  1615. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED,
  1616. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID,
  1617. };
  1618. /**
  1619. * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags
  1620. * for measurement result, per-peer
  1621. *
  1622. * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set,
  1623. * measurement completed for this peer. No more results will be reported
  1624. * for this peer in this session.
  1625. */
  1626. enum qca_wlan_vendor_attr_ftm_peer_result_flags {
  1627. QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0,
  1628. };
  1629. /**
  1630. * enum qca_vendor_attr_loc_session_status: Session completion status code
  1631. *
  1632. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed
  1633. * successfully.
  1634. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted
  1635. * by request.
  1636. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request
  1637. * was invalid and was not started.
  1638. * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error
  1639. * and did not complete normally (for example out of resources).
  1640. */
  1641. enum qca_vendor_attr_loc_session_status {
  1642. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK,
  1643. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED,
  1644. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID,
  1645. QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED,
  1646. };
  1647. /**
  1648. * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data
  1649. *
  1650. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as
  1651. * recorded by responder, in picoseconds.
  1652. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  1653. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at
  1654. * initiator, in picoseconds.
  1655. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  1656. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by
  1657. * initiator, in picoseconds.
  1658. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  1659. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at
  1660. * responder, in picoseconds.
  1661. * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information.
  1662. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded
  1663. * during this measurement exchange. Optional and will be provided if
  1664. * the hardware can measure it.
  1665. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by
  1666. * responder. Not always provided.
  1667. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  1668. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by
  1669. * responder. Not always provided.
  1670. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  1671. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by
  1672. * initiator. Not always provided.
  1673. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  1674. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by
  1675. * initiator. Not always provided.
  1676. * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information.
  1677. * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding.
  1678. */
  1679. enum qca_wlan_vendor_attr_ftm_meas {
  1680. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID,
  1681. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1,
  1682. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2,
  1683. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3,
  1684. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4,
  1685. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI,
  1686. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR,
  1687. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR,
  1688. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR,
  1689. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR,
  1690. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD,
  1691. /* keep last */
  1692. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST,
  1693. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX =
  1694. QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1,
  1695. };
  1696. /**
  1697. * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type
  1698. *
  1699. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest
  1700. * CIR (channel impulse response) path for each antenna.
  1701. * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude
  1702. * of the strongest CIR path for each antenna.
  1703. */
  1704. enum qca_wlan_vendor_attr_aoa_type {
  1705. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE,
  1706. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP,
  1707. QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX
  1708. };
  1709. /**
  1710. * enum qca_wlan_vendor_attr_encryption_test - Attributes to
  1711. * validate encryption engine
  1712. *
  1713. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute.
  1714. * This will be included if the request is for decryption; if not included,
  1715. * the request is treated as a request for encryption by default.
  1716. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value
  1717. * indicating the key cipher suite. Takes same values as
  1718. * NL80211_ATTR_KEY_CIPHER.
  1719. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value
  1720. * Key Id to be used for encryption
  1721. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values.
  1722. * Key (TK) to be used for encryption/decryption
  1723. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values.
  1724. * Packet number to be specified for encryption/decryption
  1725. * 6 bytes for TKIP/CCMP/GCMP.
  1726. * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values
  1727. * representing the 802.11 packet (header + payload + FCS) that
  1728. * needs to be encrypted/decrypted.
  1729. * Encrypted/decrypted response from the driver will also be sent
  1730. * to userspace with the same attribute.
  1731. */
  1732. enum qca_wlan_vendor_attr_encryption_test {
  1733. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0,
  1734. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION,
  1735. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER,
  1736. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID,
  1737. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK,
  1738. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN,
  1739. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA,
  1740. /* keep last */
  1741. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST,
  1742. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX =
  1743. QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1
  1744. };
  1745. /**
  1746. * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of
  1747. * sector for DMG RF sector operations.
  1748. *
  1749. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector
  1750. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector
  1751. */
  1752. enum qca_wlan_vendor_attr_dmg_rf_sector_type {
  1753. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX,
  1754. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX,
  1755. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX
  1756. };
  1757. /**
  1758. * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for
  1759. * DMG RF sector configuration for a single RF module.
  1760. * The values are defined in a compact way which closely matches
  1761. * the way it is stored in HW registers.
  1762. * The configuration provides values for 32 antennas and 8 distribution
  1763. * amplifiers, and together describes the characteristics of the RF
  1764. * sector - such as a beam in some direction with some gain.
  1765. *
  1766. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index
  1767. * of RF module for this configuration.
  1768. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge
  1769. * amplifier gain index. Unsigned 32 bit number containing
  1770. * bits for all 32 antennas.
  1771. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge
  1772. * amplifier gain index. Unsigned 32 bit number containing
  1773. * bits for all 32 antennas.
  1774. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge
  1775. * amplifier gain index. Unsigned 32 bit number containing
  1776. * bits for all 32 antennas.
  1777. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values
  1778. * for first 16 antennas, 2 bits per antenna.
  1779. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values
  1780. * for last 16 antennas, 2 bits per antenna.
  1781. * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains
  1782. * DTYPE values (3 bits) for each distribution amplifier, followed
  1783. * by X16 switch bits for each distribution amplifier. There are
  1784. * total of 8 distribution amplifiers.
  1785. */
  1786. enum qca_wlan_vendor_attr_dmg_rf_sector_cfg {
  1787. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0,
  1788. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1,
  1789. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2,
  1790. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3,
  1791. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4,
  1792. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5,
  1793. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6,
  1794. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7,
  1795. /* keep last */
  1796. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST,
  1797. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX =
  1798. QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1
  1799. };
  1800. enum qca_wlan_vendor_attr_ll_stats_set {
  1801. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0,
  1802. /* Unsigned 32-bit value */
  1803. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1,
  1804. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2,
  1805. /* keep last */
  1806. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST,
  1807. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX =
  1808. QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1,
  1809. };
  1810. enum qca_wlan_vendor_attr_ll_stats_clr {
  1811. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0,
  1812. /* Unsigned 32bit bitmap for clearing statistics
  1813. * All radio statistics 0x00000001
  1814. * cca_busy_time (within radio statistics) 0x00000002
  1815. * All channel stats (within radio statistics) 0x00000004
  1816. * All scan statistics (within radio statistics) 0x00000008
  1817. * All interface statistics 0x00000010
  1818. * All tx rate statistics (within interface statistics) 0x00000020
  1819. * All ac statistics (with in interface statistics) 0x00000040
  1820. * All contention (min, max, avg) statistics (within ac statisctics)
  1821. * 0x00000080.
  1822. */
  1823. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1,
  1824. /* Unsigned 8 bit value: Request to stop statistics collection */
  1825. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2,
  1826. /* Unsigned 32 bit bitmap: Response from the driver
  1827. * for the cleared statistics
  1828. */
  1829. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3,
  1830. /* Unsigned 8 bit value: Response from driver/firmware
  1831. * for the stop request
  1832. */
  1833. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4,
  1834. /* keep last */
  1835. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST,
  1836. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX =
  1837. QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1,
  1838. };
  1839. enum qca_wlan_vendor_attr_ll_stats_get {
  1840. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0,
  1841. /* Unsigned 32 bit value provided by the caller issuing the GET stats
  1842. * command. When reporting the stats results, the driver uses the same
  1843. * value to indicate which GET request the results correspond to.
  1844. */
  1845. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1,
  1846. /* Unsigned 32 bit value - bit mask to identify what statistics are
  1847. * requested for retrieval.
  1848. * Radio Statistics 0x00000001
  1849. * Interface Statistics 0x00000020
  1850. * All Peer Statistics 0x00000040
  1851. * Peer Statistics 0x00000080
  1852. */
  1853. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2,
  1854. /* keep last */
  1855. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST,
  1856. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX =
  1857. QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1,
  1858. };
  1859. enum qca_wlan_vendor_attr_ll_stats_results {
  1860. QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0,
  1861. /* Unsigned 32bit value. Used by the driver; must match the request id
  1862. * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command.
  1863. */
  1864. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1,
  1865. /* Unsigned 32 bit value */
  1866. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2,
  1867. /* Unsigned 32 bit value */
  1868. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3,
  1869. /* Unsigned 32 bit value */
  1870. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4,
  1871. /* Unsigned 32 bit value */
  1872. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5,
  1873. /* Signed 32 bit value */
  1874. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6,
  1875. /* Signed 32 bit value */
  1876. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7,
  1877. /* Signed 32 bit value */
  1878. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8,
  1879. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are
  1880. * nested within the interface stats.
  1881. */
  1882. /* Interface mode, e.g., STA, SOFTAP, IBSS, etc.
  1883. * Type = enum wifi_interface_mode.
  1884. */
  1885. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9,
  1886. /* Interface MAC address. An array of 6 Unsigned int8 */
  1887. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10,
  1888. /* Type = enum wifi_connection_state, e.g., DISCONNECTED,
  1889. * AUTHENTICATING, etc. valid for STA, CLI only.
  1890. */
  1891. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11,
  1892. /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE
  1893. */
  1894. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12,
  1895. /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */
  1896. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13,
  1897. /* NULL terminated SSID. An array of 33 Unsigned 8bit values */
  1898. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14,
  1899. /* BSSID. An array of 6 unsigned 8 bit values */
  1900. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15,
  1901. /* Country string advertised by AP. An array of 3 unsigned 8 bit
  1902. * values.
  1903. */
  1904. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16,
  1905. /* Country string for this association. An array of 3 unsigned 8 bit
  1906. * values.
  1907. */
  1908. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17,
  1909. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could
  1910. * be nested within the interface stats.
  1911. */
  1912. /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */
  1913. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18,
  1914. /* Unsigned int 32 value corresponding to respective AC */
  1915. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19,
  1916. /* Unsigned int 32 value corresponding to respective AC */
  1917. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20,
  1918. /* Unsigned int 32 value corresponding to respective AC */
  1919. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21,
  1920. /* Unsigned int 32 value corresponding to respective AC */
  1921. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22,
  1922. /* Unsigned int 32 value corresponding to respective AC */
  1923. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23,
  1924. /* Unsigned int 32 value corresponding to respective AC */
  1925. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24,
  1926. /* Unsigned int 32 value corresponding to respective AC */
  1927. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25,
  1928. /* Unsigned int 32 value corresponding to respective AC */
  1929. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26,
  1930. /* Unsigned int 32 value corresponding to respective AC */
  1931. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27,
  1932. /* Unsigned int 32 values corresponding to respective AC */
  1933. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28,
  1934. /* Unsigned int 32 values corresponding to respective AC */
  1935. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29,
  1936. /* Unsigned int 32 values corresponding to respective AC */
  1937. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30,
  1938. /* Unsigned int 32 values corresponding to respective AC */
  1939. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31,
  1940. /* Unsigned int 32 values corresponding to respective AC */
  1941. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32,
  1942. /* Unsigned 32 bit value. Number of peers */
  1943. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33,
  1944. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are
  1945. * nested within the interface stats.
  1946. */
  1947. /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */
  1948. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34,
  1949. /* MAC addr corresponding to respective peer. An array of 6 unsigned
  1950. * 8 bit values.
  1951. */
  1952. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35,
  1953. /* Unsigned int 32 bit value representing capabilities corresponding
  1954. * to respective peer.
  1955. */
  1956. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36,
  1957. /* Unsigned 32 bit value. Number of rates */
  1958. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37,
  1959. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  1960. * are nested within the rate stat.
  1961. */
  1962. /* Wi-Fi Rate - separate attributes defined for individual fields */
  1963. /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */
  1964. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38,
  1965. /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */
  1966. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39,
  1967. /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */
  1968. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40,
  1969. /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std
  1970. * in the units of 0.5 Mbps HT/VHT it would be MCS index */
  1971. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41,
  1972. /* Unsigned 32 bit value. Bit rate in units of 100 kbps */
  1973. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42,
  1974. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be
  1975. * nested within the peer info stats.
  1976. */
  1977. /* Unsigned int 32 bit value. Number of successfully transmitted data
  1978. * packets, i.e., with ACK received corresponding to the respective
  1979. * rate.
  1980. */
  1981. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43,
  1982. /* Unsigned int 32 bit value. Number of received data packets
  1983. * corresponding to the respective rate.
  1984. */
  1985. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44,
  1986. /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK
  1987. * received corresponding to the respective rate.
  1988. */
  1989. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45,
  1990. /* Unsigned int 32 bit value. Total number of data packet retries for
  1991. * the respective rate.
  1992. */
  1993. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46,
  1994. /* Unsigned int 32 bit value. Total number of short data packet retries
  1995. * for the respective rate.
  1996. */
  1997. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47,
  1998. /* Unsigned int 32 bit value. Total number of long data packet retries
  1999. * for the respective rate.
  2000. */
  2001. QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48,
  2002. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49,
  2003. /* Unsigned 32 bit value. Total number of msecs the radio is awake
  2004. * accruing over time.
  2005. */
  2006. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50,
  2007. /* Unsigned 32 bit value. Total number of msecs the radio is
  2008. * transmitting accruing over time.
  2009. */
  2010. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51,
  2011. /* Unsigned 32 bit value. Total number of msecs the radio is in active
  2012. * receive accruing over time.
  2013. */
  2014. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52,
  2015. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2016. * to all scan accruing over time.
  2017. */
  2018. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53,
  2019. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2020. * to NAN accruing over time.
  2021. */
  2022. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54,
  2023. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2024. * to GSCAN accruing over time.
  2025. */
  2026. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55,
  2027. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2028. * to roam scan accruing over time.
  2029. */
  2030. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56,
  2031. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2032. * to PNO scan accruing over time.
  2033. */
  2034. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57,
  2035. /* Unsigned 32 bit value. Total number of msecs the radio is awake due
  2036. * to Hotspot 2.0 scans and GAS exchange accruing over time.
  2037. */
  2038. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58,
  2039. /* Unsigned 32 bit value. Number of channels. */
  2040. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59,
  2041. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could
  2042. * be nested within the channel stats.
  2043. */
  2044. /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */
  2045. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60,
  2046. /* Unsigned 32 bit value. Primary 20 MHz channel. */
  2047. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61,
  2048. /* Unsigned 32 bit value. Center frequency (MHz) first segment. */
  2049. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62,
  2050. /* Unsigned 32 bit value. Center frequency (MHz) second segment. */
  2051. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63,
  2052. /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be
  2053. * nested within the radio stats.
  2054. */
  2055. /* Unsigned int 32 bit value representing total number of msecs the
  2056. * radio is awake on that channel accruing over time, corresponding to
  2057. * the respective channel.
  2058. */
  2059. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64,
  2060. /* Unsigned int 32 bit value representing total number of msecs the CCA
  2061. * register is busy accruing over time corresponding to the respective
  2062. * channel.
  2063. */
  2064. QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65,
  2065. QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66,
  2066. /* Signifies the nested list of channel attributes
  2067. * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_*
  2068. */
  2069. QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67,
  2070. /* Signifies the nested list of peer info attributes
  2071. * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*
  2072. */
  2073. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68,
  2074. /* Signifies the nested list of rate info attributes
  2075. * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_*
  2076. */
  2077. QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69,
  2078. /* Signifies the nested list of wmm info attributes
  2079. * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_*
  2080. */
  2081. QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70,
  2082. /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates
  2083. * that more stats, e.g., peers or radio, are to follow in the next
  2084. * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event.
  2085. * Otherwise, it is set to 0.
  2086. */
  2087. QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71,
  2088. /* Unsigned 64 bit value */
  2089. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72,
  2090. /* Unsigned 32 bit value */
  2091. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73,
  2092. /* Unsigned 32 bit value */
  2093. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74,
  2094. /* Unsigned 32 bit value */
  2095. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75,
  2096. /* Unsigned 32 bit value */
  2097. QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76,
  2098. /* Unsigned 32 bit value */
  2099. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77,
  2100. /* Number of msecs the radio spent in transmitting for each power level
  2101. */
  2102. QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78,
  2103. /* Unsigned 32 bit value */
  2104. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79,
  2105. /* Unsigned 32 bit value */
  2106. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80,
  2107. /* Unsigned 32 bit value */
  2108. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81,
  2109. /* Unsigned 32 bit value */
  2110. QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82,
  2111. /* keep last */
  2112. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST,
  2113. QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX =
  2114. QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1,
  2115. };
  2116. enum qca_wlan_vendor_attr_ll_stats_type
  2117. {
  2118. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0,
  2119. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1,
  2120. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2,
  2121. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3,
  2122. /* keep last */
  2123. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST,
  2124. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX =
  2125. QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1,
  2126. };
  2127. /**
  2128. * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for
  2129. * TDLS configuration to the host driver.
  2130. *
  2131. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger
  2132. * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode
  2133. * represents the different TDLS trigger modes.
  2134. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within
  2135. * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number
  2136. * of packets shall meet the criteria for implicit TDLS setup.
  2137. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets
  2138. * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD
  2139. * to initiate a TDLS setup.
  2140. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate
  2141. * a TDLS Discovery to the peer.
  2142. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of
  2143. * discovery attempts to know the TDLS capability of the peer. A peer is
  2144. * marked as TDLS not capable if there is no response for all the attempts.
  2145. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32)
  2146. * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD
  2147. * number of TX / RX frames meet the criteria for TDLS teardown.
  2148. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32)
  2149. * of Tx/Rx packets within a duration
  2150. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link.
  2151. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold
  2152. * corresponding to the RSSI of the peer below which a TDLS setup is
  2153. * triggered.
  2154. * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold
  2155. * corresponding to the RSSI of the peer above which a TDLS teardown is
  2156. * triggered.
  2157. */
  2158. enum qca_wlan_vendor_attr_tdls_configuration {
  2159. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0,
  2160. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1,
  2161. /* Attributes configuring the TDLS Implicit Trigger */
  2162. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2,
  2163. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3,
  2164. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4,
  2165. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5,
  2166. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6,
  2167. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7,
  2168. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8,
  2169. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9,
  2170. /* keep last */
  2171. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST,
  2172. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX =
  2173. QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1
  2174. };
  2175. /**
  2176. * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in
  2177. * the driver
  2178. *
  2179. * The following are the different values for
  2180. * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE.
  2181. *
  2182. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown
  2183. * the TDLS connection to a respective peer comes from the user space.
  2184. * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN,
  2185. * TDLS_DISCOVER to do this.
  2186. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS
  2187. * setup/teardown to the eligible peer once the configured criteria
  2188. * (such as TX/RX threshold, RSSI) is met. The attributes
  2189. * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to
  2190. * the different configuration criteria for the TDLS trigger from the
  2191. * host driver.
  2192. * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger
  2193. * the TDLS setup / teardown through the implicit mode only to the
  2194. * configured MAC addresses (wpa_supplicant, with tdls_external_control=1,
  2195. * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands).
  2196. * External mode works on top of the implicit mode. Thus the host driver
  2197. * is expected to configure in TDLS Implicit mode too to operate in
  2198. * External mode.
  2199. * Configuring External mode alone without Implicit mode is invalid.
  2200. *
  2201. * All the above implementations work as expected only when the host driver
  2202. * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing
  2203. * that the TDLS message exchange is not internal to the host driver, but
  2204. * depends on wpa_supplicant to do the message exchange.
  2205. */
  2206. enum qca_wlan_vendor_tdls_trigger_mode {
  2207. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0,
  2208. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1,
  2209. QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2,
  2210. };
  2211. /**
  2212. * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits
  2213. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0
  2214. * that is hard-coded in the Board Data File (BDF).
  2215. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1
  2216. * that is hard-coded in the Board Data File (BDF).
  2217. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2
  2218. * that is hard-coded in the Board Data File (BDF).
  2219. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3
  2220. * that is hard-coded in the Board Data File (BDF).
  2221. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4
  2222. * that is hard-coded in the Board Data File (BDF).
  2223. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any
  2224. * source of SAR power limits, thereby disabling the SAR power
  2225. * limit feature.
  2226. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power
  2227. * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR.
  2228. *
  2229. * This enumerates the valid set of values that may be supplied for
  2230. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of
  2231. * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command.
  2232. */
  2233. enum qca_vendor_attr_sar_limits_selections {
  2234. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0,
  2235. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1,
  2236. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2,
  2237. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3,
  2238. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4,
  2239. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5,
  2240. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6,
  2241. };
  2242. /**
  2243. * enum qca_vendor_attr_sar_limits_spec_modulations -
  2244. * SAR limits specification modulation
  2245. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK -
  2246. * CCK modulation
  2247. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM -
  2248. * OFDM modulation
  2249. *
  2250. * This enumerates the valid set of values that may be supplied for
  2251. * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an
  2252. * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an
  2253. * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor
  2254. * command.
  2255. */
  2256. enum qca_vendor_attr_sar_limits_spec_modulations {
  2257. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0,
  2258. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1,
  2259. };
  2260. /**
  2261. * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits
  2262. *
  2263. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT: Optional (u32) value to
  2264. * select which SAR power limit table should be used. Valid
  2265. * values are enumerated in enum
  2266. * %qca_vendor_attr_sar_limits_selections. The existing SAR
  2267. * power limit selection is unchanged if this attribute is not
  2268. * present.
  2269. *
  2270. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value
  2271. * which specifies the number of SAR power limit specifications
  2272. * which will follow.
  2273. *
  2274. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power
  2275. * limit specifications. The number of specifications is
  2276. * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each
  2277. * specification contains a set of
  2278. * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A
  2279. * specification is uniquely identified by the attributes
  2280. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND,
  2281. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and
  2282. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always
  2283. * contains as a payload the attribute
  2284. * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT.
  2285. *
  2286. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to
  2287. * indicate for which band this specification applies. Valid
  2288. * values are enumerated in enum %nl80211_band (although not all
  2289. * bands may be supported by a given device). If the attribute is
  2290. * not supplied then the specification will be applied to all
  2291. * supported bands.
  2292. *
  2293. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value
  2294. * to indicate for which antenna chain this specification
  2295. * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the
  2296. * attribute is not supplied then the specification will be
  2297. * applied to all chains.
  2298. *
  2299. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32)
  2300. * value to indicate for which modulation scheme this
  2301. * specification applies. Valid values are enumerated in enum
  2302. * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute
  2303. * is not supplied then the specification will be applied to all
  2304. * modulation schemes.
  2305. *
  2306. * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32)
  2307. * value to specify the actual power limit value in units of 0.5
  2308. * dBm (i.e., a value of 11 represents 5.5 dBm).
  2309. *
  2310. * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS.
  2311. */
  2312. enum qca_vendor_attr_sar_limits {
  2313. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0,
  2314. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1,
  2315. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2,
  2316. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3,
  2317. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4,
  2318. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5,
  2319. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6,
  2320. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7,
  2321. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST,
  2322. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX =
  2323. QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1
  2324. };
  2325. /**
  2326. * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by
  2327. * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command.
  2328. */
  2329. enum qca_wlan_vendor_attr_get_wifi_info {
  2330. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0,
  2331. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1,
  2332. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2,
  2333. /* keep last */
  2334. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST,
  2335. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX =
  2336. QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1,
  2337. };
  2338. /*
  2339. * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by
  2340. * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command.
  2341. */
  2342. enum qca_wlan_vendor_attr_wifi_logger_start {
  2343. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0,
  2344. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1,
  2345. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2,
  2346. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3,
  2347. /* keep last */
  2348. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST,
  2349. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX =
  2350. QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1,
  2351. };
  2352. enum qca_wlan_vendor_attr_logger_results {
  2353. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0,
  2354. /* Unsigned 32-bit value; must match the request Id supplied by
  2355. * Wi-Fi HAL in the corresponding subcmd NL msg.
  2356. */
  2357. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1,
  2358. /* Unsigned 32-bit value; used to indicate the size of memory
  2359. * dump to be allocated.
  2360. */
  2361. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2,
  2362. /* keep last */
  2363. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST,
  2364. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX =
  2365. QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1,
  2366. };
  2367. enum qca_wlan_vendor_attr_roaming_config_params {
  2368. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0,
  2369. QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1,
  2370. QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2,
  2371. /* Attributes for wifi_set_ssid_white_list */
  2372. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3,
  2373. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4,
  2374. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5,
  2375. /* Attributes for set_roam_params */
  2376. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6,
  2377. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7,
  2378. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8,
  2379. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9,
  2380. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10,
  2381. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11,
  2382. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12,
  2383. /* Attribute for set_lazy_roam */
  2384. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13,
  2385. /* Attribute for set_lazy_roam with preferences */
  2386. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14,
  2387. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15,
  2388. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16,
  2389. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17,
  2390. /* Attribute for set_blacklist bssid params */
  2391. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18,
  2392. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19,
  2393. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20,
  2394. /* keep last */
  2395. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST,
  2396. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX =
  2397. QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1,
  2398. };
  2399. /*
  2400. * enum qca_wlan_vendor_attr_roam_subcmd: Attributes for data used by
  2401. * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command.
  2402. */
  2403. enum qca_wlan_vendor_attr_roam_subcmd {
  2404. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_INVALID = 0,
  2405. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SSID_WHITE_LIST = 1,
  2406. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2,
  2407. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_LAZY_ROAM = 3,
  2408. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PREFS = 4,
  2409. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BSSID_PARAMS = 5,
  2410. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_SET_BLACKLIST_BSSID = 6,
  2411. /* keep last */
  2412. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST,
  2413. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_MAX =
  2414. QCA_WLAN_VENDOR_ATTR_ROAM_SUBCMD_AFTER_LAST - 1,
  2415. };
  2416. enum qca_wlan_vendor_attr_gscan_config_params {
  2417. QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0,
  2418. /* Unsigned 32-bit value */
  2419. QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1,
  2420. /* Attributes for data used by
  2421. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command.
  2422. */
  2423. /* Unsigned 32-bit value */
  2424. QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND
  2425. = 2,
  2426. /* Unsigned 32-bit value */
  2427. QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS
  2428. = 3,
  2429. /* Attributes for input params used by
  2430. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command.
  2431. */
  2432. /* Unsigned 32-bit value; channel frequency */
  2433. QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4,
  2434. /* Unsigned 32-bit value; dwell time in ms. */
  2435. QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5,
  2436. /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */
  2437. QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6,
  2438. /* Unsigned 8-bit value; channel class */
  2439. QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7,
  2440. /* Unsigned 8-bit value; bucket index, 0 based */
  2441. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8,
  2442. /* Unsigned 8-bit value; band. */
  2443. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9,
  2444. /* Unsigned 32-bit value; desired period, in ms. */
  2445. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10,
  2446. /* Unsigned 8-bit value; report events semantics. */
  2447. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11,
  2448. /* Unsigned 32-bit value. Followed by a nested array of
  2449. * GSCAN_CHANNEL_SPEC_* attributes.
  2450. */
  2451. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12,
  2452. /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes.
  2453. * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  2454. */
  2455. QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13,
  2456. /* Unsigned 32-bit value; base timer period in ms. */
  2457. QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14,
  2458. /* Unsigned 32-bit value; number of APs to store in each scan in the
  2459. * BSSID/RSSI history buffer (keep the highest RSSI APs).
  2460. */
  2461. QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15,
  2462. /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake
  2463. * up AP.
  2464. */
  2465. QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT
  2466. = 16,
  2467. /* Unsigned 8-bit value; number of scan bucket specs; followed by a
  2468. * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size
  2469. * of the array is determined by NUM_BUCKETS.
  2470. */
  2471. QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17,
  2472. /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes.
  2473. * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS
  2474. */
  2475. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18,
  2476. /* Unsigned 8-bit value */
  2477. QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH
  2478. = 19,
  2479. /* Unsigned 32-bit value; maximum number of results to be returned. */
  2480. QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX
  2481. = 20,
  2482. /* An array of 6 x unsigned 8-bit value */
  2483. QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21,
  2484. /* Signed 32-bit value */
  2485. QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22,
  2486. /* Signed 32-bit value */
  2487. QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23,
  2488. /* Unsigned 32-bit value */
  2489. QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24,
  2490. /* Number of hotlist APs as unsigned 32-bit value, followed by a nested
  2491. * array of AP_THRESHOLD_PARAM attributes and values. The size of the
  2492. * array is determined by NUM_AP.
  2493. */
  2494. QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25,
  2495. /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes.
  2496. * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS
  2497. */
  2498. QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26,
  2499. /* Unsigned 32-bit value; number of samples for averaging RSSI. */
  2500. QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE
  2501. = 27,
  2502. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  2503. QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE
  2504. = 28,
  2505. /* Unsigned 32-bit value; number of APs breaching threshold. */
  2506. QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29,
  2507. /* Unsigned 32-bit value; number of APs. Followed by an array of
  2508. * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP.
  2509. */
  2510. QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30,
  2511. /* Unsigned 32-bit value; number of samples to confirm AP loss. */
  2512. QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE
  2513. = 31,
  2514. /* Unsigned 32-bit value. If max_period is non zero or different than
  2515. * period, then this bucket is an exponential backoff bucket.
  2516. */
  2517. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32,
  2518. /* Unsigned 32-bit value. */
  2519. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33,
  2520. /* Unsigned 32-bit value. For exponential back off bucket, number of
  2521. * scans to perform for a given period.
  2522. */
  2523. QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34,
  2524. /* Unsigned 8-bit value; in number of scans, wake up AP after these
  2525. * many scans.
  2526. */
  2527. QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS
  2528. = 35,
  2529. /* Attributes for data used by
  2530. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command.
  2531. */
  2532. /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */
  2533. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE
  2534. = 36,
  2535. /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a
  2536. * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The
  2537. * size of the array is determined by NUM_SSID.
  2538. */
  2539. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37,
  2540. /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_*
  2541. * attributes.
  2542. * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID
  2543. */
  2544. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38,
  2545. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  2546. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39,
  2547. /* Unsigned 8-bit value */
  2548. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40,
  2549. /* Signed 32-bit value */
  2550. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41,
  2551. /* Signed 32-bit value */
  2552. QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42,
  2553. /* Unsigned 32-bit value; a bitmask with additional gscan config flag.
  2554. */
  2555. QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43,
  2556. /* keep last */
  2557. QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST,
  2558. QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX =
  2559. QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1,
  2560. };
  2561. enum qca_wlan_vendor_attr_gscan_results {
  2562. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0,
  2563. /* Unsigned 32-bit value; must match the request Id supplied by
  2564. * Wi-Fi HAL in the corresponding subcmd NL msg.
  2565. */
  2566. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1,
  2567. /* Unsigned 32-bit value; used to indicate the status response from
  2568. * firmware/driver for the vendor sub-command.
  2569. */
  2570. QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2,
  2571. /* GSCAN Valid Channels attributes */
  2572. /* Unsigned 32bit value; followed by a nested array of CHANNELS. */
  2573. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3,
  2574. /* An array of NUM_CHANNELS x unsigned 32-bit value integers
  2575. * representing channel numbers.
  2576. */
  2577. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4,
  2578. /* GSCAN Capabilities attributes */
  2579. /* Unsigned 32-bit value */
  2580. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5,
  2581. /* Unsigned 32-bit value */
  2582. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6,
  2583. /* Unsigned 32-bit value */
  2584. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN
  2585. = 7,
  2586. /* Unsigned 32-bit value */
  2587. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE
  2588. = 8,
  2589. /* Signed 32-bit value */
  2590. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD
  2591. = 9,
  2592. /* Unsigned 32-bit value */
  2593. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10,
  2594. /* Unsigned 32-bit value */
  2595. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS
  2596. = 11,
  2597. /* Unsigned 32-bit value */
  2598. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES
  2599. = 12,
  2600. /* GSCAN Attributes used with
  2601. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command.
  2602. */
  2603. /* Unsigned 32-bit value */
  2604. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13,
  2605. /* GSCAN attributes used with
  2606. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command.
  2607. */
  2608. /* An array of NUM_RESULTS_AVAILABLE x
  2609. * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_*
  2610. */
  2611. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14,
  2612. /* Unsigned 64-bit value; age of sample at the time of retrieval */
  2613. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15,
  2614. /* 33 x unsigned 8-bit value; NULL terminated SSID */
  2615. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16,
  2616. /* An array of 6 x unsigned 8-bit value */
  2617. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17,
  2618. /* Unsigned 32-bit value; channel frequency in MHz */
  2619. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18,
  2620. /* Signed 32-bit value */
  2621. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19,
  2622. /* Unsigned 32-bit value */
  2623. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20,
  2624. /* Unsigned 32-bit value */
  2625. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21,
  2626. /* Unsigned 16-bit value */
  2627. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22,
  2628. /* Unsigned 16-bit value */
  2629. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23,
  2630. /* Unsigned 32-bit value; size of the IE DATA blob */
  2631. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24,
  2632. /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the
  2633. * information elements found in the beacon; this data should be a
  2634. * packed list of wifi_information_element objects, one after the
  2635. * other.
  2636. */
  2637. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25,
  2638. /* Unsigned 8-bit value; set by driver to indicate more scan results are
  2639. * available.
  2640. */
  2641. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26,
  2642. /* GSCAN attributes for
  2643. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command.
  2644. */
  2645. /* Unsigned 8-bit value */
  2646. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27,
  2647. /* Unsigned 32-bit value */
  2648. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28,
  2649. /* GSCAN attributes for
  2650. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command.
  2651. */
  2652. /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2653. * to indicate number of results.
  2654. * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
  2655. * list of results.
  2656. */
  2657. /* GSCAN attributes for
  2658. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command.
  2659. */
  2660. /* An array of 6 x unsigned 8-bit value */
  2661. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29,
  2662. /* Unsigned 32-bit value */
  2663. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL
  2664. = 30,
  2665. /* Unsigned 32-bit value. */
  2666. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI
  2667. = 31,
  2668. /* A nested array of signed 32-bit RSSI values. Size of the array is
  2669. * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI.
  2670. */
  2671. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST
  2672. = 32,
  2673. /* GSCAN attributes used with
  2674. * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command.
  2675. */
  2676. /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2677. * to indicate number of gscan cached results returned.
  2678. * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate
  2679. * the list of gscan cached results.
  2680. */
  2681. /* An array of NUM_RESULTS_AVAILABLE x
  2682. * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_*
  2683. */
  2684. QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33,
  2685. /* Unsigned 32-bit value; a unique identifier for the scan unit. */
  2686. QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34,
  2687. /* Unsigned 32-bit value; a bitmask w/additional information about scan.
  2688. */
  2689. QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35,
  2690. /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE
  2691. * to indicate number of wifi scan results/bssids retrieved by the scan.
  2692. * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the
  2693. * list of wifi scan results returned for each cached result block.
  2694. */
  2695. /* GSCAN attributes for
  2696. * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command.
  2697. */
  2698. /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for
  2699. * number of results.
  2700. * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
  2701. * list of wifi scan results returned for each
  2702. * wifi_passpoint_match_result block.
  2703. * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE.
  2704. */
  2705. /* GSCAN attributes for
  2706. * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command.
  2707. */
  2708. /* Unsigned 32-bit value */
  2709. QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES
  2710. = 36,
  2711. /* A nested array of
  2712. * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_*
  2713. * attributes. Array size =
  2714. * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES.
  2715. */
  2716. QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37,
  2717. /* Unsigned 32-bit value; network block id for the matched network */
  2718. QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38,
  2719. /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested
  2720. * list of wifi scan results returned for each
  2721. * wifi_passpoint_match_result block.
  2722. */
  2723. /* Unsigned 32-bit value */
  2724. QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39,
  2725. /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values;
  2726. * ANQP data in the information_element format.
  2727. */
  2728. QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40,
  2729. /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
  2730. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41,
  2731. /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
  2732. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42,
  2733. /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
  2734. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID
  2735. = 43,
  2736. /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */
  2737. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID
  2738. = 44,
  2739. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45,
  2740. /* keep last */
  2741. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST,
  2742. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX =
  2743. QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1,
  2744. };
  2745. enum qca_wlan_vendor_attr_pno_config_params {
  2746. QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0,
  2747. /* Attributes for data used by
  2748. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command.
  2749. */
  2750. /* Unsigned 32-bit value */
  2751. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1,
  2752. /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_*
  2753. * attributes. Array size =
  2754. * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM.
  2755. */
  2756. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2,
  2757. /* Unsigned 32-bit value */
  2758. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3,
  2759. /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded
  2760. * realm, 0 if unspecified.
  2761. */
  2762. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4,
  2763. /* An array of 16 x unsigned 32-bit value; roaming consortium ids to
  2764. * match, 0 if unspecified.
  2765. */
  2766. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5,
  2767. /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if
  2768. * unspecified.
  2769. */
  2770. QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6,
  2771. /* Attributes for data used by
  2772. * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command.
  2773. */
  2774. /* Unsigned 32-bit value */
  2775. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7,
  2776. /* Array of nested
  2777. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_*
  2778. * attributes. Array size =
  2779. * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS.
  2780. */
  2781. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8,
  2782. /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */
  2783. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9,
  2784. /* Signed 8-bit value; threshold for considering this SSID as found,
  2785. * required granularity for this threshold is 4 dBm to 8 dBm.
  2786. */
  2787. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD
  2788. = 10,
  2789. /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */
  2790. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11,
  2791. /* Unsigned 8-bit value; auth bit field for matching WPA IE */
  2792. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12,
  2793. /* Unsigned 8-bit to indicate ePNO type;
  2794. * It takes values from qca_wlan_epno_type
  2795. */
  2796. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13,
  2797. /* Nested attribute to send the channel list */
  2798. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14,
  2799. /* Unsigned 32-bit value; indicates the interval between PNO scan
  2800. * cycles in msec.
  2801. */
  2802. QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15,
  2803. QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16,
  2804. QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17,
  2805. QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18,
  2806. QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19,
  2807. QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20,
  2808. QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21,
  2809. QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22,
  2810. /* keep last */
  2811. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST,
  2812. QCA_WLAN_VENDOR_ATTR_PNO_MAX =
  2813. QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1,
  2814. };
  2815. /**
  2816. * qca_wlan_vendor_acs_select_reason: This represents the different reasons why
  2817. * the ACS has to be triggered. These values are used by
  2818. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and
  2819. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON
  2820. */
  2821. enum qca_wlan_vendor_acs_select_reason {
  2822. /* Represents the reason that the ACS triggered during the AP start */
  2823. QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT,
  2824. /* Represents the reason that DFS found with the current channel */
  2825. QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS,
  2826. /* Represents the reason that LTE co-exist in the current band. */
  2827. QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX,
  2828. };
  2829. /**
  2830. * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel.
  2831. * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS.
  2832. */
  2833. enum qca_wlan_vendor_channel_prop_flags {
  2834. /* Bits 0, 1, 2, and 3 are reserved */
  2835. /* Turbo channel */
  2836. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4,
  2837. /* CCK channel */
  2838. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5,
  2839. /* OFDM channel */
  2840. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6,
  2841. /* 2.4 GHz spectrum channel. */
  2842. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7,
  2843. /* 5 GHz spectrum channel */
  2844. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8,
  2845. /* Only passive scan allowed */
  2846. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9,
  2847. /* Dynamic CCK-OFDM channel */
  2848. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10,
  2849. /* GFSK channel (FHSS PHY) */
  2850. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11,
  2851. /* Radar found on channel */
  2852. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12,
  2853. /* 11a static turbo channel only */
  2854. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13,
  2855. /* Half rate channel */
  2856. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14,
  2857. /* Quarter rate channel */
  2858. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15,
  2859. /* HT 20 channel */
  2860. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16,
  2861. /* HT 40 with extension channel above */
  2862. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17,
  2863. /* HT 40 with extension channel below */
  2864. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18,
  2865. /* HT 40 intolerant */
  2866. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19,
  2867. /* VHT 20 channel */
  2868. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20,
  2869. /* VHT 40 with extension channel above */
  2870. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21,
  2871. /* VHT 40 with extension channel below */
  2872. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22,
  2873. /* VHT 80 channel */
  2874. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23,
  2875. /* HT 40 intolerant mark bit for ACS use */
  2876. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24,
  2877. /* Channel temporarily blocked due to noise */
  2878. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25,
  2879. /* VHT 160 channel */
  2880. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26,
  2881. /* VHT 80+80 channel */
  2882. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27,
  2883. };
  2884. /**
  2885. * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for
  2886. * each channel. This is used by
  2887. * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT.
  2888. */
  2889. enum qca_wlan_vendor_channel_prop_flags_ext {
  2890. /* Radar found on channel */
  2891. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0,
  2892. /* DFS required on channel */
  2893. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1,
  2894. /* DFS required on channel for 2nd band of 80+80 */
  2895. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2,
  2896. /* If channel has been checked for DFS */
  2897. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3,
  2898. /* Excluded in 802.11d */
  2899. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4,
  2900. /* Channel Switch Announcement received on this channel */
  2901. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5,
  2902. /* Ad-hoc is not allowed */
  2903. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6,
  2904. /* Station only channel */
  2905. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7,
  2906. /* DFS radar history for slave device (STA mode) */
  2907. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8,
  2908. /* DFS CAC valid for slave device (STA mode) */
  2909. QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9,
  2910. };
  2911. /**
  2912. * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel
  2913. * information. These attributes are sent as part of
  2914. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following
  2915. * attributes correspond to a single channel.
  2916. */
  2917. enum qca_wlan_vendor_external_acs_event_chan_info_attr {
  2918. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0,
  2919. /* A bitmask (u32) with flags specified in
  2920. * enum qca_wlan_vendor_channel_prop_flags.
  2921. */
  2922. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1,
  2923. /* A bitmask (u32) with flags specified in
  2924. * enum qca_wlan_vendor_channel_prop_flags_ext.
  2925. */
  2926. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2,
  2927. /* frequency in MHz (u32) */
  2928. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3,
  2929. /* maximum regulatory transmission power (u32) */
  2930. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4,
  2931. /* maximum transmission power (u32) */
  2932. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5,
  2933. /* minimum transmission power (u32) */
  2934. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6,
  2935. /* regulatory class id (u8) */
  2936. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7,
  2937. /* maximum antenna gain in (u8) */
  2938. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8,
  2939. /* VHT segment 0 (u8) */
  2940. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9,
  2941. /* VHT segment 1 (u8) */
  2942. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10,
  2943. /* keep last */
  2944. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST,
  2945. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX =
  2946. QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1,
  2947. };
  2948. /**
  2949. * qca_wlan_vendor_attr_pcl: Represents attributes for
  2950. * preferred channel list (PCL). These attributes are sent as part of
  2951. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL.
  2952. */
  2953. enum qca_wlan_vendor_attr_pcl {
  2954. QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0,
  2955. /* Channel number (u8) */
  2956. QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1,
  2957. /* Channel weightage (u8) */
  2958. QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2,
  2959. };
  2960. /**
  2961. * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command
  2962. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by
  2963. * host driver.
  2964. */
  2965. enum qca_wlan_vendor_attr_external_acs_event {
  2966. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0,
  2967. /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason.
  2968. * This helps ACS module to understand why ACS needs to be started.
  2969. */
  2970. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1,
  2971. /* Flag attribute to indicate if driver supports spectral scanning */
  2972. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2,
  2973. /* Flag attribute to indicate if 11ac is offloaded to firmware */
  2974. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3,
  2975. /* Flag attribute to indicate if driver provides additional channel
  2976. * capability as part of scan operation */
  2977. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4,
  2978. /* Flag attribute to indicate interface status is UP */
  2979. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5,
  2980. /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype
  2981. * values. */
  2982. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6,
  2983. /* Channel width (u8). It takes one of enum nl80211_chan_width values.
  2984. * This is the upper bound of channel width. ACS logic should try to get
  2985. * a channel with the specified width and if not found, look for lower
  2986. * values.
  2987. */
  2988. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7,
  2989. /* This (u8) will hold values of one of enum nl80211_bands */
  2990. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8,
  2991. /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode
  2992. * values */
  2993. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9,
  2994. /* Array of (u32) supported frequency list among which ACS should choose
  2995. * best frequency.
  2996. */
  2997. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10,
  2998. /* Preferred channel list by the driver which will have array of nested
  2999. * values as per enum qca_wlan_vendor_attr_pcl attribute.
  3000. */
  3001. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11,
  3002. /* Array of nested attribute for each channel. It takes attr as defined
  3003. * in enum qca_wlan_vendor_external_acs_event_chan_info_attr.
  3004. */
  3005. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12,
  3006. /* keep last */
  3007. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST,
  3008. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX =
  3009. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1,
  3010. };
  3011. /**
  3012. * qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd
  3013. * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels
  3014. * in priority order as decided after ACS operation in userspace.
  3015. */
  3016. enum qca_wlan_vendor_attr_external_acs_channels {
  3017. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0,
  3018. /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason
  3019. */
  3020. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1,
  3021. /* Array of nested values for each channel with following attributes:
  3022. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND,
  3023. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY,
  3024. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY,
  3025. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0,
  3026. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1,
  3027. * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH
  3028. */
  3029. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2,
  3030. /* This (u8) will hold values of one of enum nl80211_bands */
  3031. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3,
  3032. /* Primary channel (u8) */
  3033. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4,
  3034. /* Secondary channel (u8) used for HT 40 MHz channels */
  3035. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5,
  3036. /* VHT seg0 channel (u8) */
  3037. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6,
  3038. /* VHT seg1 channel (u8) */
  3039. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7,
  3040. /* Channel width (u8). Takes one of enum nl80211_chan_width values. */
  3041. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8,
  3042. /* keep last */
  3043. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST,
  3044. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX =
  3045. QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1
  3046. };
  3047. enum qca_chip_power_save_failure_reason {
  3048. /* Indicates if the reason for the failure is due to a protocol
  3049. * layer/module.
  3050. */
  3051. QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0,
  3052. /* Indicates if the reason for the failure is due to a hardware issue.
  3053. */
  3054. QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1,
  3055. };
  3056. /**
  3057. * qca_attr_chip_power_save_failure: Attributes to vendor subcmd
  3058. * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite
  3059. * information leading to the power save failure.
  3060. */
  3061. enum qca_attr_chip_power_save_failure {
  3062. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0,
  3063. /* Reason to cause the power save failure.
  3064. * These reasons are represented by
  3065. * enum qca_chip_power_save_failure_reason.
  3066. */
  3067. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1,
  3068. /* keep last */
  3069. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST,
  3070. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX =
  3071. QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1,
  3072. };
  3073. /**
  3074. * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd
  3075. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite
  3076. * information to start/stop the NUD statistics collection.
  3077. */
  3078. enum qca_attr_nud_stats_set {
  3079. QCA_ATTR_NUD_STATS_SET_INVALID = 0,
  3080. /* Flag to start/stop the NUD statistics collection.
  3081. * Start - If included, Stop - If not included
  3082. */
  3083. QCA_ATTR_NUD_STATS_SET_START = 1,
  3084. /* IPv4 address of the default gateway (in network byte order) */
  3085. QCA_ATTR_NUD_STATS_GW_IPV4 = 2,
  3086. /* keep last */
  3087. QCA_ATTR_NUD_STATS_SET_LAST,
  3088. QCA_ATTR_NUD_STATS_SET_MAX =
  3089. QCA_ATTR_NUD_STATS_SET_LAST - 1,
  3090. };
  3091. /**
  3092. * qca_attr_nud_stats_get: Attributes to vendor subcmd
  3093. * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite
  3094. * NUD statistics collected when queried.
  3095. */
  3096. enum qca_attr_nud_stats_get {
  3097. QCA_ATTR_NUD_STATS_GET_INVALID = 0,
  3098. /* ARP Request count from netdev */
  3099. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1,
  3100. /* ARP Request count sent to lower MAC from upper MAC */
  3101. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2,
  3102. /* ARP Request count received by lower MAC from upper MAC */
  3103. QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3,
  3104. /* ARP Request count successfully transmitted by the device */
  3105. QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4,
  3106. /* ARP Response count received by lower MAC */
  3107. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5,
  3108. /* ARP Response count received by upper MAC */
  3109. QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6,
  3110. /* ARP Response count delivered to netdev */
  3111. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7,
  3112. /* ARP Response count delivered to netdev */
  3113. QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8,
  3114. /* Flag indicating if the station's link to the AP is active.
  3115. * Active Link - If included, Inactive link - If not included
  3116. */
  3117. QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE= 9,
  3118. /* Flag indicating if there is any duplicate address detected (DAD).
  3119. * Yes - If detected, No - If not detected.
  3120. */
  3121. QCA_ATTR_NUD_STATS_IS_DAD = 9,
  3122. /* keep last */
  3123. QCA_ATTR_NUD_STATS_GET_LAST,
  3124. QCA_ATTR_NUD_STATS_GET_MAX =
  3125. QCA_ATTR_NUD_STATS_GET_LAST - 1,
  3126. };
  3127. enum qca_wlan_btm_candidate_status {
  3128. QCA_STATUS_ACCEPT = 0,
  3129. QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1,
  3130. QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2,
  3131. QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3,
  3132. QCA_STATUS_REJECT_LOW_RSSI = 4,
  3133. QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5,
  3134. QCA_STATUS_REJECT_UNKNOWN = 6,
  3135. };
  3136. enum qca_wlan_vendor_attr_btm_candidate_info {
  3137. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0,
  3138. /* 6-byte MAC address representing the BSSID of transition candidate */
  3139. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1,
  3140. /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status
  3141. * returned by the driver. It says whether the BSSID provided in
  3142. * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by
  3143. * the driver, if not it specifies the reason for rejection.
  3144. * Note that the user-space can overwrite the transition reject reason
  3145. * codes provided by driver based on more information.
  3146. */
  3147. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2,
  3148. /* keep last */
  3149. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST,
  3150. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX =
  3151. QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1,
  3152. };
  3153. #endif /* QCA_VENDOR_H */