wlan_tdls_public_structs.h 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: wlan_tdls_public_structs.h
  20. *
  21. * TDLS public structure definations
  22. */
  23. #ifndef _WLAN_TDLS_STRUCTS_H_
  24. #define _WLAN_TDLS_STRUCTS_H_
  25. #include <qdf_timer.h>
  26. #include <qdf_list.h>
  27. #include <qdf_mc_timer.h>
  28. #include <wlan_cmn.h>
  29. #include <wlan_cmn_ieee80211.h>
  30. #define WLAN_TDLS_STA_MAX_NUM 8
  31. #define WLAN_TDLS_STA_P_UAPSD_OFFCHAN_MAX_NUM 1
  32. #define WLAN_TDLS_PEER_LIST_SIZE 16
  33. #define WLAN_TDLS_CT_TABLE_SIZE 8
  34. #define WLAN_TDLS_PEER_SUB_LIST_SIZE 10
  35. #define WLAN_MAC_MAX_EXTN_CAP 8
  36. #define WLAN_MAC_MAX_SUPP_CHANNELS 100
  37. #define WLAN_MAC_WMI_MAX_SUPP_CHANNELS 128
  38. #define WLAN_MAX_SUPP_OPER_CLASSES 32
  39. #define WLAN_MAC_MAX_SUPP_RATES 32
  40. #define WLAN_CHANNEL_14 14
  41. #define ENABLE_CHANSWITCH 1
  42. #define DISABLE_CHANSWITCH 2
  43. #define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_MIN 1
  44. #define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_MAX 165
  45. #define WLAN_TDLS_PREFERRED_OFF_CHANNEL_NUM_DEF 36
  46. #define AC_PRIORITY_NUM 4
  47. /** Maximum time(ms) to wait for tdls add sta to complete **/
  48. #define WAIT_TIME_TDLS_ADD_STA 1500
  49. /** Maximum time(ms) to wait for tdls del sta to complete **/
  50. #define WAIT_TIME_TDLS_DEL_STA 1500
  51. /** Maximum time(ms) to wait for Link Establish Req to complete **/
  52. #define WAIT_TIME_TDLS_LINK_ESTABLISH_REQ 1500
  53. /** Maximum time(ms) to wait for tdls mgmt to complete **/
  54. #define WAIT_TIME_FOR_TDLS_MGMT 11000
  55. /** Maximum waittime for TDLS teardown links **/
  56. #define WAIT_TIME_FOR_TDLS_TEARDOWN_LINKS 10000
  57. #define TDLS_TEARDOWN_PEER_UNREACHABLE 25
  58. #define TDLS_TEARDOWN_PEER_UNSPEC_REASON 26
  59. #define TDLS_STA_INDEX_CHECK(sta_id) \
  60. (((sta_id) >= 1) && ((sta_id) < 0xFF))
  61. /**
  62. * enum tdls_conc_cap - tdls concurrency support
  63. * @TDLS_SUPPORTED_ONLY_ON_STA: only support sta tdls
  64. * @TDLS_SUPPORTED_ONLY_ON_P2P_CLIENT: only support p2p client tdls
  65. */
  66. enum tdls_conc_cap {
  67. TDLS_SUPPORTED_ONLY_ON_STA = 0,
  68. TDLS_SUPPORTED_ONLY_ON_P2P_CLIENT,
  69. };
  70. /**
  71. * enum tdls_peer_capab - tdls capability type
  72. * @TDLS_CAP_NOT_SUPPORTED: tdls not supported
  73. * @TDLS_CAP_UNKNOWN: unknown capability
  74. * @TDLS_CAP_SUPPORTED: tdls capability supported
  75. */
  76. enum tdls_peer_capab {
  77. TDLS_CAP_NOT_SUPPORTED = -1,
  78. TDLS_CAP_UNKNOWN = 0,
  79. TDLS_CAP_SUPPORTED = 1,
  80. };
  81. /**
  82. * enum tdls_peer_state - tdls peer state
  83. * @TDLS_PEER_STATE_PEERING: tdls connection in progress
  84. * @TDLS_PEER_STATE_CONNCTED: tdls peer is connected
  85. * @TDLS_PEER_STATE_TEARDOWN: tdls peer is tear down
  86. * @TDLS_PEER_ADD_MAC_ADDR: add peer mac into connection table
  87. * @TDLS_PEER_REMOVE_MAC_ADDR: remove peer mac from connection table
  88. */
  89. enum tdls_peer_state {
  90. TDLS_PEER_STATE_PEERING,
  91. TDLS_PEER_STATE_CONNCTED,
  92. TDLS_PEER_STATE_TEARDOWN,
  93. TDLS_PEER_ADD_MAC_ADDR,
  94. TDLS_PEER_REMOVE_MAC_ADDR
  95. };
  96. /**
  97. * enum tdls_link_state - tdls link state
  98. * @TDLS_LINK_IDLE: tdls link idle
  99. * @TDLS_LINK_DISCOVERING: tdls link discovering
  100. * @TDLS_LINK_DISCOVERED: tdls link discovered
  101. * @TDLS_LINK_CONNECTING: tdls link connecting
  102. * @TDLS_LINK_CONNECTED: tdls link connected
  103. * @TDLS_LINK_TEARING: tdls link tearing
  104. */
  105. enum tdls_link_state {
  106. TDLS_LINK_IDLE = 0,
  107. TDLS_LINK_DISCOVERING,
  108. TDLS_LINK_DISCOVERED,
  109. TDLS_LINK_CONNECTING,
  110. TDLS_LINK_CONNECTED,
  111. TDLS_LINK_TEARING,
  112. };
  113. /**
  114. * enum tdls_link_state_reason - tdls link reason
  115. * @TDLS_LINK_SUCCESS: Success
  116. * @TDLS_LINK_UNSPECIFIED: Unspecified reason
  117. * @TDLS_LINK_NOT_SUPPORTED: Remote side doesn't support TDLS
  118. * @TDLS_LINK_UNSUPPORTED_BAND: Remote side doesn't support this band
  119. * @TDLS_LINK_NOT_BENEFICIAL: Going to AP is better than direct
  120. * @TDLS_LINK_DROPPED_BY_REMOTE: Remote side doesn't want it anymore
  121. */
  122. enum tdls_link_state_reason {
  123. TDLS_LINK_SUCCESS,
  124. TDLS_LINK_UNSPECIFIED = -1,
  125. TDLS_LINK_NOT_SUPPORTED = -2,
  126. TDLS_LINK_UNSUPPORTED_BAND = -3,
  127. TDLS_LINK_NOT_BENEFICIAL = -4,
  128. TDLS_LINK_DROPPED_BY_REMOTE = -5,
  129. };
  130. /**
  131. * enum tdls_feature_mode - TDLS support mode
  132. * @TDLS_SUPPORT_DISABLED: Disabled in ini or FW
  133. * @TDLS_SUPPORT_SUSPENDED: TDLS supported by ini and FW, but disabled
  134. * temporarily due to off-channel operations or due to other reasons
  135. * @TDLS_SUPPORT_EXP_TRIG_ONLY: Explicit trigger mode
  136. * @TDLS_SUPPORT_IMP_MODE: Implicit mode
  137. * @TDLS_SUPPORT_EXT_CONTROL: External control mode
  138. */
  139. enum tdls_feature_mode {
  140. TDLS_SUPPORT_DISABLED = 0,
  141. TDLS_SUPPORT_SUSPENDED,
  142. TDLS_SUPPORT_EXP_TRIG_ONLY,
  143. TDLS_SUPPORT_IMP_MODE,
  144. TDLS_SUPPORT_EXT_CONTROL,
  145. };
  146. /**
  147. * enum tdls_command_type - TDLS command type
  148. * @TDLS_CMD_TX_ACTION: send tdls action frame
  149. * @TDLS_CMD_ADD_STA: add tdls peer
  150. * @TDLS_CMD_CHANGE_STA: change tdls peer
  151. * @TDLS_CMD_ENABLE_LINK: enable tdls link
  152. * @TDLS_CMD_DISABLE_LINK: disable tdls link
  153. * @TDLS_CMD_CONFIG_FORCE_PEER: config external peer
  154. * @TDLS_CMD_REMOVE_FORCE_PEER: remove external peer
  155. * @TDLS_CMD_STATS_UPDATE: update tdls stats
  156. * @TDLS_CMD_CONFIG_UPDATE: config tdls
  157. * @TDLS_CMD_SCAN_DONE: scon done event
  158. * @TDLS_CMD_SET_RESPONDER: responder event
  159. * @TDLS_NOTIFY_STA_CONNECTION: notify sta connection
  160. * @TDLS_NOTIFY_STA_DISCONNECTION: notify sta disconnection
  161. * @TDLS_CMD_SET_TDLS_MODE: set the tdls mode
  162. * @TDLS_CMD_SESSION_INCREMENT: notify session increment
  163. * @TDLS_CMD_SESSION_DECREMENT: notify session decrement
  164. * @TDLS_CMD_TEARDOWN_LINKS: notify teardown
  165. * @TDLS_NOTIFY_RESET_ADAPTERS: notify adapater reset
  166. */
  167. enum tdls_command_type {
  168. TDLS_CMD_TX_ACTION = 1,
  169. TDLS_CMD_ADD_STA,
  170. TDLS_CMD_CHANGE_STA,
  171. TDLS_CMD_ENABLE_LINK,
  172. TDLS_CMD_DISABLE_LINK,
  173. TDLS_CMD_CONFIG_FORCE_PEER,
  174. TDLS_CMD_REMOVE_FORCE_PEER,
  175. TDLS_CMD_STATS_UPDATE,
  176. TDLS_CMD_CONFIG_UPDATE,
  177. TDLS_CMD_SCAN_DONE,
  178. TDLS_CMD_SET_RESPONDER,
  179. TDLS_NOTIFY_STA_CONNECTION,
  180. TDLS_NOTIFY_STA_DISCONNECTION,
  181. TDLS_CMD_SET_TDLS_MODE,
  182. TDLS_CMD_SESSION_INCREMENT,
  183. TDLS_CMD_SESSION_DECREMENT,
  184. TDLS_CMD_TEARDOWN_LINKS,
  185. TDLS_NOTIFY_RESET_ADAPTERS,
  186. };
  187. /**
  188. * enum tdls_event_type - TDLS event type
  189. * @TDLS_EVENT_VDEV_STATE_CHANGE: umac connect/disconnect event
  190. * @TDLS_EVENT_MGMT_TX_ACK_CNF: tx tdls frame ack event
  191. * @TDLS_EVENT_RX_MGMT: rx discovery response frame
  192. * @TDLS_EVENT_ADD_PEER: add peer or update peer
  193. * @TDLS_EVENT_DEL_PEER: delete peer
  194. * @TDLS_EVENT_DISCOVERY_REQ: dicovery request
  195. * @TDLS_EVENT_TEARDOWN_REQ: teardown request
  196. * @TDLS_EVENT_SETUP_REQ: setup request
  197. */
  198. enum tdls_event_type {
  199. TDLS_EVENT_VDEV_STATE_CHANGE = 0,
  200. TDLS_EVENT_MGMT_TX_ACK_CNF,
  201. TDLS_EVENT_RX_MGMT,
  202. TDLS_EVENT_ADD_PEER,
  203. TDLS_EVENT_DEL_PEER,
  204. TDLS_EVENT_DISCOVERY_REQ,
  205. TDLS_EVENT_TEARDOWN_REQ,
  206. TDLS_EVENT_SETUP_REQ,
  207. TDLS_EVENT_TEARDOWN_LINKS_DONE,
  208. };
  209. /**
  210. * enum tdls_state_t - tdls state
  211. * @QCA_WIFI_HAL_TDLS_DISABLED: TDLS is not enabled, or is disabled now
  212. * @QCA_WIFI_HAL_TDLS_ENABLED: TDLS is enabled, but not yet tried
  213. * @QCA_WIFI_HAL_TDLS_ESTABLISHED: Direct link is established
  214. * @QCA_WIFI_HAL_TDLS_ESTABLISHED_OFF_CHANNEL: Direct link established using MCC
  215. * @QCA_WIFI_HAL_TDLS_DROPPED: Direct link was established, but is now dropped
  216. * @QCA_WIFI_HAL_TDLS_FAILED: Direct link failed
  217. */
  218. enum tdls_state_t {
  219. QCA_WIFI_HAL_TDLS_S_DISABLED = 1,
  220. QCA_WIFI_HAL_TDLS_S_ENABLED,
  221. QCA_WIFI_HAL_TDLS_S_ESTABLISHED,
  222. QCA_WIFI_HAL_TDLS_S_ESTABLISHED_OFF_CHANNEL,
  223. QCA_WIFI_HAL_TDLS_S_DROPPED,
  224. QCA_WIFI_HAL_TDLS_S_FAILED,
  225. };
  226. /**
  227. * enum tdls_off_chan_mode - mode for WMI_TDLS_SET_OFFCHAN_MODE_CMDID
  228. * @TDLS_ENABLE_OFFCHANNEL: enable off channel
  229. * @TDLS_DISABLE_OFFCHANNEL: disable off channel
  230. */
  231. enum tdls_off_chan_mode {
  232. TDLS_ENABLE_OFFCHANNEL,
  233. TDLS_DISABLE_OFFCHANNEL
  234. };
  235. /**
  236. * enum tdls_event_msg_type - TDLS event message type
  237. * @TDLS_SHOULD_DISCOVER: should do discover for peer (based on tx bytes per
  238. * second > tx_discover threshold)
  239. * @TDLS_SHOULD_TEARDOWN: recommend teardown the link for peer due to tx bytes
  240. * per second below tx_teardown_threshold
  241. * @TDLS_PEER_DISCONNECTED: tdls peer disconnected
  242. * @TDLS_CONNECTION_TRACKER_NOTIFY: TDLS/BT role change notification for
  243. * connection tracker
  244. */
  245. enum tdls_event_msg_type {
  246. TDLS_SHOULD_DISCOVER = 0,
  247. TDLS_SHOULD_TEARDOWN,
  248. TDLS_PEER_DISCONNECTED,
  249. TDLS_CONNECTION_TRACKER_NOTIFY
  250. };
  251. /**
  252. * enum tdls_event_reason - TDLS event reason
  253. * @TDLS_TEARDOWN_TX: tdls teardown recommended due to low transmits
  254. * @TDLS_TEARDOWN_RSSI: tdls link tear down recommended due to poor RSSI
  255. * @TDLS_TEARDOWN_SCAN: tdls link tear down recommended due to offchannel scan
  256. * @TDLS_TEARDOWN_PTR_TIMEOUT: tdls peer disconnected due to PTR timeout
  257. * @TDLS_TEARDOWN_BAD_PTR: tdls peer disconnected due wrong PTR format
  258. * @TDLS_TEARDOWN_NO_RSP: tdls peer not responding
  259. * @TDLS_DISCONNECTED_PEER_DELETE: tdls peer disconnected due to peer deletion
  260. * @TDLS_PEER_ENTER_BUF_STA: tdls entered buffer STA role, TDLS connection
  261. * tracker needs to handle this
  262. * @TDLS_PEER_EXIT_BUF_STA: tdls exited buffer STA role, TDLS connection tracker
  263. * needs to handle this
  264. * @TDLS_ENTER_BT_BUSY: BT entered busy mode, TDLS connection tracker needs to
  265. * handle this
  266. * @TDLS_EXIT_BT_BUSY: BT exited busy mode, TDLS connection tracker needs to
  267. * handle this
  268. * @DLS_SCAN_STARTED: TDLS module received a scan start event, TDLS connection
  269. * tracker needs to handle this
  270. * @TDLS_SCAN_COMPLETED: TDLS module received a scan complete event, TDLS
  271. * connection tracker needs to handle this
  272. */
  273. enum tdls_event_reason {
  274. TDLS_TEARDOWN_TX,
  275. TDLS_TEARDOWN_RSSI,
  276. TDLS_TEARDOWN_SCAN,
  277. TDLS_TEARDOWN_PTR_TIMEOUT,
  278. TDLS_TEARDOWN_BAD_PTR,
  279. TDLS_TEARDOWN_NO_RSP,
  280. TDLS_DISCONNECTED_PEER_DELETE,
  281. TDLS_PEER_ENTER_BUF_STA,
  282. TDLS_PEER_EXIT_BUF_STA,
  283. TDLS_ENTER_BT_BUSY,
  284. TDLS_EXIT_BT_BUSY,
  285. TDLS_SCAN_STARTED,
  286. TDLS_SCAN_COMPLETED,
  287. };
  288. /**
  289. * enum tdls_disable_sources - TDLS disable sources
  290. * @TDLS_SET_MODE_SOURCE_USER: disable from user
  291. * @TDLS_SET_MODE_SOURCE_SCAN: disable during scan
  292. * @TDLS_SET_MODE_SOURCE_OFFCHANNEL: disable during offchannel
  293. * @TDLS_SET_MODE_SOURCE_BTC: disable during bluetooth
  294. * @TDLS_SET_MODE_SOURCE_P2P: disable during p2p
  295. */
  296. enum tdls_disable_sources {
  297. TDLS_SET_MODE_SOURCE_USER = 0,
  298. TDLS_SET_MODE_SOURCE_SCAN,
  299. TDLS_SET_MODE_SOURCE_OFFCHANNEL,
  300. TDLS_SET_MODE_SOURCE_BTC,
  301. TDLS_SET_MODE_SOURCE_P2P,
  302. };
  303. /**
  304. * struct tdls_osif_indication - tdls indication to os if layer
  305. * @vdev: vdev object
  306. * @reason: used with teardown indication
  307. * @peer_mac: MAC address of the TDLS peer
  308. */
  309. struct tdls_osif_indication {
  310. struct wlan_objmgr_vdev *vdev;
  311. uint16_t reason;
  312. uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
  313. QDF_STATUS status;
  314. };
  315. /**
  316. * struct tx_frame - tx frame
  317. * @buf: frame buffer
  318. * @buf_len: buffer length
  319. * @tx_timer: tx send timer
  320. */
  321. struct tx_frame {
  322. uint8_t *buf;
  323. size_t buf_len;
  324. qdf_timer_t tx_timer;
  325. };
  326. /**
  327. * enum tdls_feature_bit
  328. * @TDLS_FEATURE_OFF_CHANNEL: tdls off channel
  329. * @TDLS_FEATURE_WMM: tdls wmm
  330. * @TDLS_FEATURE_BUFFER_STA: tdls buffer sta
  331. * @TDLS_FEATURE_SLEEP_STA: tdls sleep sta feature
  332. * @TDLS_FEATURE_SCAN: tdls scan
  333. * @TDLS_FEATURE_ENABLE: tdls enabled
  334. * @TDLS_FEAUTRE_IMPLICIT_TRIGGER: tdls implicit trigger
  335. * @TDLS_FEATURE_EXTERNAL_CONTROL: tdls external control
  336. */
  337. enum tdls_feature_bit {
  338. TDLS_FEATURE_OFF_CHANNEL,
  339. TDLS_FEATURE_WMM,
  340. TDLS_FEATURE_BUFFER_STA,
  341. TDLS_FEATURE_SLEEP_STA,
  342. TDLS_FEATURE_SCAN,
  343. TDLS_FEATURE_ENABLE,
  344. TDLS_FEAUTRE_IMPLICIT_TRIGGER,
  345. TDLS_FEATURE_EXTERNAL_CONTROL
  346. };
  347. #define TDLS_IS_OFF_CHANNEL_ENABLED(flags) \
  348. CHECK_BIT(flags, TDLS_FEATURE_OFF_CHANNEL)
  349. #define TDLS_IS_WMM_ENABLED(flags) \
  350. CHECK_BIT(flags, TDLS_FEATURE_WMM)
  351. #define TDLS_IS_BUFFER_STA_ENABLED(flags) \
  352. CHECK_BIT(flags, TDLS_FEATURE_BUFFER_STA)
  353. #define TDLS_IS_SLEEP_STA_ENABLED(flags) \
  354. CHECK_BIT(flags, TDLS_FEATURE_SLEEP_STA)
  355. #define TDLS_IS_SCAN_ENABLED(flags) \
  356. CHECK_BIT(flags, TDLS_FEATURE_SCAN)
  357. #define TDLS_IS_ENABLED(flags) \
  358. CHECK_BIT(flags, TDLS_FEATURE_ENABLE)
  359. #define TDLS_IS_IMPLICIT_TRIG_ENABLED(flags) \
  360. CHECK_BIT(flags, TDLS_FEAUTRE_IMPLICIT_TRIGGER)
  361. #define TDLS_IS_EXTERNAL_CONTROL_ENABLED(flags) \
  362. CHECK_BIT(flags, TDLS_FEATURE_EXTERNAL_CONTROL)
  363. /**
  364. * struct tdls_user_config - TDLS user configuration
  365. * @tdls_tx_states_period: tdls tx states period
  366. * @tdls_tx_pkt_threshold: tdls tx packets threshold
  367. * @tdls_rx_pkt_threshold: tdls rx packets threshold
  368. * @tdls_max_discovery_attempt: tdls discovery max times
  369. * @tdls_idle_timeout: tdls idle timeout
  370. * @tdls_idle_pkt_threshold: tdls idle packets threshold
  371. * @tdls_rssi_trigger_threshold: tdls rssi trigger threshold
  372. * @tdls_rssi_teardown_threshold: tdls rssi tear down threshold
  373. * @tdls_rssi_delta: tdls rssi delta
  374. * @tdls_uapsd_mask: tdls uapsd mask
  375. * @tdls_uapsd_inactivity_time: tdls uapsd inactivity time
  376. * @tdls_uapsd_pti_window: tdls peer traffic indication window
  377. * @tdls_uapsd_ptr_timeout: tdls peer response timeout
  378. * @tdls_feature_flags: tdls feature flags
  379. * @tdls_pre_off_chan_num: tdls off channel number
  380. * @tdls_pre_off_chan_bw: tdls off channel bandwidth
  381. * @tdls_peer_kickout_threshold: sta kickout threshold for tdls peer
  382. * @delayed_trig_framint: delayed trigger frame interval
  383. */
  384. struct tdls_user_config {
  385. uint32_t tdls_tx_states_period;
  386. uint32_t tdls_tx_pkt_threshold;
  387. uint32_t tdls_rx_pkt_threshold;
  388. uint32_t tdls_max_discovery_attempt;
  389. uint32_t tdls_idle_timeout;
  390. uint32_t tdls_idle_pkt_threshold;
  391. uint32_t tdls_rssi_trigger_threshold;
  392. uint32_t tdls_rssi_teardown_threshold;
  393. uint32_t tdls_rssi_delta;
  394. uint32_t tdls_uapsd_mask;
  395. uint32_t tdls_uapsd_inactivity_time;
  396. uint32_t tdls_uapsd_pti_window;
  397. uint32_t tdls_uapsd_ptr_timeout;
  398. uint32_t tdls_feature_flags;
  399. uint32_t tdls_pre_off_chan_num;
  400. uint32_t tdls_pre_off_chan_bw;
  401. uint32_t tdls_peer_kickout_threshold;
  402. uint32_t delayed_trig_framint;
  403. };
  404. /**
  405. * struct tdls_config_params - tdls configure paramets
  406. * @tdls: tdls support mode
  407. * @tx_period_t: tdls tx stats period
  408. * @tx_packet_n: tdls tx packets number threshold
  409. * @discovery_tries_n: tdls max discovery attempt count
  410. * @idle_timeout_t: tdls idle time timeout
  411. * @idle_packet_n: tdls idle pkt threshold
  412. * @rssi_trigger_threshold: tdls rssi trigger threshold, checked before setup
  413. * @rssi_teardown_threshold: tdls rssi teardown threshold
  414. * @rssi_delta: rssi delta
  415. */
  416. struct tdls_config_params {
  417. uint32_t tdls;
  418. uint32_t tx_period_t;
  419. uint32_t tx_packet_n;
  420. uint32_t discovery_tries_n;
  421. uint32_t idle_timeout_t;
  422. uint32_t idle_packet_n;
  423. int32_t rssi_trigger_threshold;
  424. int32_t rssi_teardown_threshold;
  425. int32_t rssi_delta;
  426. };
  427. /**
  428. * struct tdls_tx_cnf: tdls tx ack
  429. * @vdev_id: vdev id
  430. * @action_cookie: frame cookie
  431. * @buf: frame buf
  432. * @buf_len: buffer length
  433. * @status: tx send status
  434. */
  435. struct tdls_tx_cnf {
  436. int vdev_id;
  437. uint64_t action_cookie;
  438. void *buf;
  439. size_t buf_len;
  440. int status;
  441. };
  442. /**
  443. * struct tdls_rx_mgmt_frame - rx mgmt frame structure
  444. * @frame_len: frame length
  445. * @rx_chan: rx channel
  446. * @vdev_id: vdev id
  447. * @frm_type: frame type
  448. * @rx_rssi: rx rssi
  449. * @buf: buffer address
  450. */
  451. struct tdls_rx_mgmt_frame {
  452. uint32_t frame_len;
  453. uint32_t rx_chan;
  454. uint32_t vdev_id;
  455. uint32_t frm_type;
  456. uint32_t rx_rssi;
  457. uint8_t buf[1];
  458. };
  459. /**
  460. * tdls_rx_callback() - Callback for rx mgmt frame
  461. * @user_data: user data associated to this rx mgmt frame.
  462. * @rx_frame: RX mgmt frame
  463. *
  464. * This callback will be used to give rx frames to hdd.
  465. *
  466. * Return: None
  467. */
  468. typedef void (*tdls_rx_callback)(void *user_data,
  469. struct tdls_rx_mgmt_frame *rx_frame);
  470. /**
  471. * tdls_wmm_check() - Callback for wmm info
  472. * @psoc: psoc object
  473. *
  474. * This callback will be used to check wmm information
  475. *
  476. * Return: true or false
  477. */
  478. typedef bool (*tdls_wmm_check)(struct wlan_objmgr_vdev **vdev);
  479. /* This callback is used to report state change of peer to wpa_supplicant */
  480. typedef int (*tdls_state_change_callback)(const uint8_t *mac,
  481. uint32_t opclass,
  482. uint32_t channel,
  483. uint32_t state,
  484. int32_t reason, void *ctx);
  485. /* This callback is used to report events to os_if layer */
  486. typedef void (*tdls_evt_callback) (void *data,
  487. enum tdls_event_type ev_type,
  488. struct tdls_osif_indication *event);
  489. /* prototype of callback registered by hdd to receive the ack cnf */
  490. typedef int (*tdls_tx_ack_cnf_callback)(void *user_data,
  491. struct tdls_tx_cnf *tx_ack_cnf_cb_data);
  492. /* This callback is used to register TDLS peer with TL */
  493. typedef QDF_STATUS (*tdls_register_tl_peer_callback)(void *userdata,
  494. uint32_t vdev_id,
  495. const uint8_t *mac,
  496. uint16_t stat_id,
  497. uint8_t ucastsig,
  498. uint8_t qos);
  499. /* This callback is used to deregister TDLS peer */
  500. typedef QDF_STATUS (*tdls_deregister_tl_peer_callback)(void *userdata,
  501. uint32_t vdev_id,
  502. uint8_t sta_id);
  503. /* This callback is used to update datapath vdev flags */
  504. typedef QDF_STATUS
  505. (*tdls_dp_vdev_update_flags_callback)(void *cbk_data,
  506. uint8_t sta_id,
  507. uint32_t vdev_param,
  508. bool is_link_up);
  509. /**
  510. * struct tdls_start_params - tdls start params
  511. * @config: tdls user config
  512. * @tdls_send_mgmt_req: pass eWNI_SME_TDLS_SEND_MGMT_REQ value
  513. * @tdls_add_sta_req: pass eWNI_SME_TDLS_ADD_STA_REQ value
  514. * @tdls_del_sta_req: pass eWNI_SME_TDLS_DEL_STA_REQ value
  515. * @tdls_update_peer_state: pass WMA_UPDATE_TDLS_PEER_STATE value
  516. * @tdls_del_all_peers: pass eWNI_SME_DEL_ALL_TDLS_PEERS
  517. * @tdls_update_dp_vdev_flags: pass CDP_UPDATE_TDLS_FLAGS
  518. * @tdls_event_cb: tdls event callback
  519. * @tdls_evt_cb_data: tdls event data
  520. * @ack_cnf_cb: tdls tx ack callback to indicate the tx status
  521. * @tx_ack_cnf_cb_data: tdls tx ack user data
  522. * @tdls_reg_tl_peer: tdls register tdls peer
  523. * @tdls_dereg_tl_peer: tdls deregister tdls peer
  524. * @tdls_dp_vdev_update: update vdev flags in datapath
  525. * @tdls_tl_peer_data: userdata for register/deregister TDLS peer
  526. */
  527. struct tdls_start_params {
  528. struct tdls_user_config config;
  529. uint16_t tdls_send_mgmt_req;
  530. uint16_t tdls_add_sta_req;
  531. uint16_t tdls_del_sta_req;
  532. uint16_t tdls_update_peer_state;
  533. uint16_t tdls_del_all_peers;
  534. uint32_t tdls_update_dp_vdev_flags;
  535. tdls_rx_callback tdls_rx_cb;
  536. void *tdls_rx_cb_data;
  537. tdls_wmm_check tdls_wmm_cb;
  538. void *tdls_wmm_cb_data;
  539. tdls_evt_callback tdls_event_cb;
  540. void *tdls_evt_cb_data;
  541. tdls_tx_ack_cnf_callback ack_cnf_cb;
  542. void *tx_ack_cnf_cb_data;
  543. tdls_register_tl_peer_callback tdls_reg_tl_peer;
  544. tdls_deregister_tl_peer_callback tdls_dereg_tl_peer;
  545. tdls_dp_vdev_update_flags_callback tdls_dp_vdev_update;
  546. void *tdls_tl_peer_data;
  547. };
  548. /**
  549. * struct tdls_add_peer_params - add peer request parameter
  550. * @peer_addr: peer mac addr
  551. * @peer_type: peer type
  552. * @vdev_id: vdev id
  553. */
  554. struct tdls_add_peer_params {
  555. uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
  556. uint32_t peer_type;
  557. uint32_t vdev_id;
  558. };
  559. /**
  560. * struct tdls_add_peer_request - peer add request
  561. * @vdev: vdev
  562. * @add_peer_req: add peer request parameters
  563. */
  564. struct tdls_add_peer_request {
  565. struct wlan_objmgr_vdev *vdev;
  566. struct tdls_add_peer_params add_peer_req;
  567. };
  568. /**
  569. * struct tdls_del_peer_params - delete peer request parameter
  570. * @peer_addr: peer mac addr
  571. * @peer_type: peer type
  572. * @vdev_id: vdev id
  573. */
  574. struct tdls_del_peer_params {
  575. const uint8_t *peer_addr;
  576. uint32_t peer_type;
  577. uint32_t vdev_id;
  578. };
  579. /**
  580. * struct tdls_del_peer_request - peer delete request
  581. * @vdev: vdev
  582. * @del_peer_req: delete peer request parameters
  583. */
  584. struct tdls_del_peer_request {
  585. struct wlan_objmgr_vdev *vdev;
  586. struct tdls_del_peer_params del_peer_req;
  587. };
  588. /**
  589. * struct vhgmcsinfo - VHT MCS information
  590. * @rx_mcs_map: RX MCS map 2 bits for each stream, total 8 streams
  591. * @rx_highest: Indicates highest long GI VHT PPDU data rate
  592. * STA can receive. Rate expressed in units of 1 Mbps.
  593. * If this field is 0 this value should not be used to
  594. * consider the highest RX data rate supported.
  595. * @tx_mcs_map: TX MCS map 2 bits for each stream, total 8 streams
  596. * @tx_highest: Indicates highest long GI VHT PPDU data rate
  597. * STA can transmit. Rate expressed in units of 1 Mbps.
  598. * If this field is 0 this value should not be used to
  599. * consider the highest TX data rate supported.
  600. */
  601. struct vhtmcsinfo {
  602. uint16_t rx_mcs_map;
  603. uint16_t rx_highest;
  604. uint16_t tx_mcs_map;
  605. uint16_t tx_highest;
  606. };
  607. /**
  608. * struct vhtcap - VHT capabilities
  609. *
  610. * This structure is the "VHT capabilities element" as
  611. * described in 802.11ac D3.0 8.4.2.160
  612. * @vht_cap_info: VHT capability info
  613. * @supp_mcs: VHT MCS supported rates
  614. */
  615. struct vhtcap {
  616. uint32_t vht_capinfo;
  617. struct vhtmcsinfo supp_mcs;
  618. };
  619. struct tdls_update_peer_params {
  620. uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
  621. uint32_t peer_type;
  622. uint32_t vdev_id;
  623. uint16_t capability;
  624. uint8_t extn_capability[WLAN_MAC_MAX_EXTN_CAP];
  625. uint8_t supported_rates_len;
  626. uint8_t supported_rates[WLAN_MAC_MAX_SUPP_RATES];
  627. uint8_t htcap_present;
  628. struct htcap_cmn_ie ht_cap;
  629. uint8_t vhtcap_present;
  630. struct vhtcap vht_cap;
  631. uint8_t uapsd_queues;
  632. uint8_t max_sp;
  633. uint8_t supported_channels_len;
  634. uint8_t supported_channels[WLAN_MAC_MAX_SUPP_CHANNELS];
  635. uint8_t supported_oper_classes_len;
  636. uint8_t supported_oper_classes[WLAN_MAX_SUPP_OPER_CLASSES];
  637. bool is_qos_wmm_sta;
  638. };
  639. struct tdls_update_peer_request {
  640. struct wlan_objmgr_vdev *vdev;
  641. struct tdls_update_peer_params update_peer_req;
  642. };
  643. /**
  644. * struct tdls_oper_request - tdls operation request
  645. * @vdev: vdev object
  646. * @peer_addr: MAC address of the TDLS peer
  647. */
  648. struct tdls_oper_request {
  649. struct wlan_objmgr_vdev *vdev;
  650. uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
  651. };
  652. /**
  653. * struct tdls_oper_config_force_peer_request - tdls enable force peer request
  654. * @vdev: vdev object
  655. * @peer_addr: MAC address of the TDLS peer
  656. * @chan: channel
  657. * @max_latency: maximum latency
  658. * @op_class: operation class
  659. * @min_bandwidth: minimal bandwidth
  660. * @callback: state change callback
  661. */
  662. struct tdls_oper_config_force_peer_request {
  663. struct wlan_objmgr_vdev *vdev;
  664. uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
  665. uint32_t chan;
  666. uint32_t max_latency;
  667. uint32_t op_class;
  668. uint32_t min_bandwidth;
  669. tdls_state_change_callback callback;
  670. };
  671. /**
  672. * struct tdls_info - tdls info
  673. *
  674. * @vdev_id: vdev id
  675. * @tdls_state: tdls state
  676. * @notification_interval_ms: notification interval in ms
  677. * @tx_discovery_threshold: tx discovery threshold
  678. * @tx_teardown_threshold: tx teardown threshold
  679. * @rssi_teardown_threshold: rx teardown threshold
  680. * @rssi_delta: rssi delta
  681. * @tdls_options: tdls options
  682. * @peer_traffic_ind_window: peer traffic indication window
  683. * @peer_traffic_response_timeout: peer traffic response timeout
  684. * @puapsd_mask: puapsd mask
  685. * @puapsd_inactivity_time: puapsd inactivity time
  686. * @puapsd_rx_frame_threshold: puapsd rx frame threshold
  687. * @teardown_notification_ms: tdls teardown notification interval
  688. * @tdls_peer_kickout_threshold: tdls packets threshold
  689. * for peer kickout operation
  690. */
  691. struct tdls_info {
  692. uint32_t vdev_id;
  693. uint32_t tdls_state;
  694. uint32_t notification_interval_ms;
  695. uint32_t tx_discovery_threshold;
  696. uint32_t tx_teardown_threshold;
  697. int32_t rssi_teardown_threshold;
  698. int32_t rssi_delta;
  699. uint32_t tdls_options;
  700. uint32_t peer_traffic_ind_window;
  701. uint32_t peer_traffic_response_timeout;
  702. uint32_t puapsd_mask;
  703. uint32_t puapsd_inactivity_time;
  704. uint32_t puapsd_rx_frame_threshold;
  705. uint32_t teardown_notification_ms;
  706. uint32_t tdls_peer_kickout_threshold;
  707. };
  708. /**
  709. * struct tdls_ch_params - channel parameters
  710. * @chan_id: ID of the channel
  711. * @pwr: power level
  712. * @dfs_set: is dfs supported or not
  713. * @half_rate: is the channel operating at 10MHz
  714. * @quarter_rate: is the channel operating at 5MHz
  715. */
  716. struct tdls_ch_params {
  717. uint8_t chan_id;
  718. uint8_t pwr;
  719. bool dfs_set;
  720. bool half_rate;
  721. bool quarter_rate;
  722. };
  723. /**
  724. * struct tdls_peer_params - TDLS peer capablities parameters
  725. * @is_peer_responder: is peer responder or not
  726. * @peer_uapsd_queue: peer uapsd queue
  727. * @peer_max_sp: peer max SP value
  728. * @peer_buff_sta_support: peer buffer sta supported or not
  729. * @peer_off_chan_support: peer offchannel support
  730. * @peer_curr_operclass: peer current operating class
  731. * @self_curr_operclass: self current operating class
  732. * @peer_chanlen: peer channel length
  733. * @peer_chan: peer channel list
  734. * @peer_oper_classlen: peer operating class length
  735. * @peer_oper_class: peer operating class
  736. * @pref_off_channum: peer offchannel number
  737. * @pref_off_chan_bandwidth: peer offchannel bandwidth
  738. * @opclass_for_prefoffchan: operating class for offchannel
  739. */
  740. struct tdls_peer_params {
  741. uint8_t is_peer_responder;
  742. uint8_t peer_uapsd_queue;
  743. uint8_t peer_max_sp;
  744. uint8_t peer_buff_sta_support;
  745. uint8_t peer_off_chan_support;
  746. uint8_t peer_curr_operclass;
  747. uint8_t self_curr_operclass;
  748. uint8_t peer_chanlen;
  749. struct tdls_ch_params peer_chan[WLAN_MAC_WMI_MAX_SUPP_CHANNELS];
  750. uint8_t peer_oper_classlen;
  751. uint8_t peer_oper_class[WLAN_MAX_SUPP_OPER_CLASSES];
  752. uint8_t pref_off_channum;
  753. uint8_t pref_off_chan_bandwidth;
  754. uint8_t opclass_for_prefoffchan;
  755. };
  756. /**
  757. * struct tdls_peer_update_state - TDLS peer state parameters
  758. * @vdev_id: vdev id
  759. * @peer_macaddr: peer mac address
  760. * @peer_cap: peer capabality
  761. * @resp_reqd: response needed
  762. */
  763. struct tdls_peer_update_state {
  764. uint32_t vdev_id;
  765. uint8_t peer_macaddr[QDF_MAC_ADDR_SIZE];
  766. uint32_t peer_state;
  767. struct tdls_peer_params peer_cap;
  768. bool resp_reqd;
  769. };
  770. /**
  771. * struct tdls_channel_switch_params - channel switch parameter structure
  772. * @vdev_id: vdev ID
  773. * @peer_mac_addr: Peer mac address
  774. * @tdls_off_ch_bw_offset: Target off-channel bandwitdh offset
  775. * @tdls_off_ch: Target Off Channel
  776. * @oper_class: Operating class for target channel
  777. * @is_responder: Responder or initiator
  778. */
  779. struct tdls_channel_switch_params {
  780. uint32_t vdev_id;
  781. uint8_t peer_mac_addr[QDF_MAC_ADDR_SIZE];
  782. uint16_t tdls_off_ch_bw_offset;
  783. uint8_t tdls_off_ch;
  784. uint8_t tdls_sw_mode;
  785. uint8_t oper_class;
  786. uint8_t is_responder;
  787. };
  788. /**
  789. * enum uapsd_access_cat - U-APSD Access Categories
  790. * @UAPSD_AC_BE: best effort
  791. * @UAPSD_AC_BK: back ground
  792. * @UAPSD_AC_VI: video
  793. * @UAPSD_AC_VO: voice
  794. */
  795. enum uapsd_access_cat {
  796. UAPSD_AC_BE,
  797. UAPSD_AC_BK,
  798. UAPSD_AC_VI,
  799. UAPSD_AC_VO
  800. };
  801. /**
  802. * enum tspec_dir_type - TSPEC Direction type
  803. * @TX_DIR: uplink
  804. * @RX_DIR: downlink
  805. * @BI_DIR: bidirectional
  806. */
  807. enum tspec_dir_type {
  808. TX_DIR = 0,
  809. RX_DIR = 1,
  810. BI_DIR = 2,
  811. };
  812. /**
  813. * struct sta_uapsd_params - uapsd auto trig params
  814. * @wmm_ac: WMM access category from 0 to 3
  815. * @user_priority: User priority to use in trigger frames
  816. * @service_interval: service interval
  817. * @suspend_interval: suspend interval
  818. * @delay_interval: delay interval
  819. */
  820. struct sta_uapsd_params {
  821. uint32_t wmm_ac;
  822. uint32_t user_priority;
  823. uint32_t service_interval;
  824. uint32_t suspend_interval;
  825. uint32_t delay_interval;
  826. };
  827. /**
  828. * struct sta_uapsd_trig_params - uapsd trigger parameter
  829. * @vdevid: vdev id
  830. * @peer_addr: peer address
  831. * @auto_triggerparam: trigger parameters
  832. * @num_ac: no of access category
  833. */
  834. struct sta_uapsd_trig_params {
  835. uint32_t vdevid;
  836. uint8_t peer_addr[QDF_MAC_ADDR_SIZE];
  837. struct sta_uapsd_params *auto_triggerparam;
  838. uint32_t num_ac;
  839. };
  840. /**
  841. * struct tdls_event_info - firmware tdls event
  842. * @vdev_id: vdev id
  843. * @peermac: peer mac address
  844. * @message_type: message type
  845. * @peer_reason: reason
  846. */
  847. struct tdls_event_info {
  848. uint8_t vdev_id;
  849. struct qdf_mac_addr peermac;
  850. uint16_t message_type;
  851. uint32_t peer_reason;
  852. };
  853. /**
  854. * struct tdls_event_notify - tdls event notify
  855. * @vdev: vdev object
  856. * @event: tdls event
  857. */
  858. struct tdls_event_notify {
  859. struct wlan_objmgr_vdev *vdev;
  860. struct tdls_event_info event;
  861. };
  862. /**
  863. * struct tdls_event_notify - tdls event notify
  864. * @peer_mac: peer's mac address
  865. * @frame_type: Type of TDLS mgmt frame to be sent
  866. * @dialog: dialog token used in the frame.
  867. * @status_code: status to be incuded in the frame
  868. * @responder: Tdls request type
  869. * @len: lenght of additional Ies
  870. * @peer_capability: peer cpabilities
  871. * @len: lenght of additional Ies
  872. * @buf: additional IEs to be included
  873. */
  874. struct tdls_send_mgmt {
  875. struct qdf_mac_addr peer_mac;
  876. uint8_t frame_type;
  877. uint8_t dialog;
  878. uint16_t status_code;
  879. uint8_t responder;
  880. uint32_t peer_capability;
  881. uint8_t len;
  882. /* Variable length, do not add anything after this */
  883. uint8_t *buf;
  884. };
  885. /**
  886. * struct tdls_validate_action_req - tdls validate mgmt request
  887. * @vdev: vdev object
  888. * @action_code: action code
  889. * @peer_mac: peer mac address
  890. * @dialog_token: dialog code
  891. * @status_code: status code to add
  892. * @len: len of the frame
  893. * @responder: whether to respond or not
  894. * @max_sta_failed: mgmt failure reason
  895. */
  896. struct tdls_validate_action_req {
  897. struct wlan_objmgr_vdev *vdev;
  898. uint8_t action_code;
  899. uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
  900. uint8_t dialog_token;
  901. uint8_t status_code;
  902. size_t len;
  903. int responder;
  904. int max_sta_failed;
  905. };
  906. /**
  907. * struct tdls_send_action_frame_request - tdls send mgmt request
  908. * @vdev: vdev object
  909. * @chk_frame: frame validation structure
  910. * @session_id: session id
  911. * @vdev_id: vdev id
  912. * @tdls_mgmt: tdls managment
  913. */
  914. struct tdls_action_frame_request {
  915. struct wlan_objmgr_vdev *vdev;
  916. struct tdls_validate_action_req *chk_frame;
  917. uint8_t session_id;
  918. uint8_t vdev_id;
  919. const uint8_t *cmd_buf;
  920. uint8_t len;
  921. struct tdls_send_mgmt tdls_mgmt;
  922. bool use_default_ac;
  923. };
  924. /**
  925. * struct tdls_set_responder_req - tdls set responder in peer
  926. * @vdev: vdev object
  927. * @peer_mac: peer mac address
  928. * @responder: whether to respond or not
  929. */
  930. struct tdls_set_responder_req {
  931. struct wlan_objmgr_vdev *vdev;
  932. uint8_t peer_mac[QDF_MAC_ADDR_SIZE];
  933. uint8_t responder;
  934. };
  935. /**
  936. * struct tdls_sta_notify_params - STA connection notify info
  937. * @vdev: vdev object
  938. * @tdls_prohibited: peer mac addr
  939. * @tdls_chan_swit_prohibited: peer type
  940. * @lfr_roam: is trigger due to lfr
  941. * @session_id: session id
  942. */
  943. struct tdls_sta_notify_params {
  944. struct wlan_objmgr_vdev *vdev;
  945. bool tdls_prohibited;
  946. bool tdls_chan_swit_prohibited;
  947. bool lfr_roam;
  948. bool user_disconnect;
  949. uint8_t session_id;
  950. };
  951. /**
  952. * struct tdls_set_mode_params - TDLS set mode params
  953. * @vdev: vdev object
  954. * @tdls_mode: tdls mode to set
  955. * @update_last: inform to update last tdls mode
  956. * @source: mode change requester
  957. */
  958. struct tdls_set_mode_params {
  959. struct wlan_objmgr_vdev *vdev;
  960. enum tdls_feature_mode tdls_mode;
  961. bool update_last;
  962. enum tdls_disable_sources source;
  963. };
  964. /**
  965. * struct tdls_del_all_tdls_peers - delete all tdls peers
  966. * @msg_type: type of message
  967. * @msg_len: length of message
  968. * @bssid: bssid of peer device
  969. */
  970. struct tdls_del_all_tdls_peers {
  971. uint16_t msg_type;
  972. uint16_t msg_len;
  973. struct qdf_mac_addr bssid;
  974. };
  975. #endif