lin
2025-07-31 065ea569db06206874bbfa18eb25ff6121aec09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* SPDX-License-Identifier: GPL-2.0 */
 
/******************************************************************************
 *
 * Copyright (C) 2020 SeekWave Technology Co.,Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 ******************************************************************************/
 
#ifndef __SKW_TDLS_H__
#define __SKW_TDLS_H__
 
enum SKW_WMM_TYPE {
   SKW_WMM_TYPE_INFO,
   SKW_WMM_TYPE_PARAMETER,
};
 
enum SKW_TDLS_PEER_CAPA {
   SKW_TDLS_PEER_HT  = BIT(0),
   SKW_TDLS_PEER_VHT = BIT(1),
   SKW_TDLS_PEER_WMM = BIT(2),
};
 
#ifdef CONFIG_SWT6621S_TDLS
int skw_tdls_build_send_mgmt(struct skw_core *skw, struct net_device *ndev,
           const u8 *peer, u8 action_code, u8 dialog_token,
           u16 status_code, u32 peer_cap, bool initiator,
           const u8 *ies, size_t ies_len);
#else
static inline int skw_tdls_build_send_mgmt(struct skw_core *skw,
           struct net_device *ndev, const u8 *peer, u8 action,
           u8 token, u16 status, u32 peer_capa, bool initiator,
           const u8 *ies, size_t ies_len)
{
   return 0;
}
 
#endif
 
#endif