qca-vendor.h 142 KB

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