qca-vendor.h 157 KB

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