vendor.h (1034B)
1// SPDX-License-Identifier: ISC 2/* 3 * Copyright (c) 2014 Broadcom Corporation 4 */ 5 6#ifndef _vendor_h_ 7#define _vendor_h_ 8 9#define BROADCOM_OUI 0x001018 10 11enum brcmf_vndr_cmds { 12 BRCMF_VNDR_CMDS_UNSPEC, 13 BRCMF_VNDR_CMDS_DCMD, 14 BRCMF_VNDR_CMDS_LAST 15}; 16 17/** 18 * enum brcmf_nlattrs - nl80211 message attributes 19 * 20 * @BRCMF_NLATTR_LEN: message body length 21 * @BRCMF_NLATTR_DATA: message body 22 */ 23enum brcmf_nlattrs { 24 BRCMF_NLATTR_UNSPEC, 25 26 BRCMF_NLATTR_LEN, 27 BRCMF_NLATTR_DATA, 28 29 __BRCMF_NLATTR_AFTER_LAST, 30 BRCMF_NLATTR_MAX = __BRCMF_NLATTR_AFTER_LAST - 1 31}; 32 33/** 34 * struct brcmf_vndr_dcmd_hdr - message header for cfg80211 vendor command dcmd 35 * support 36 * 37 * @cmd: common dongle cmd definition 38 * @len: length of expecting return buffer 39 * @offset: offset of data buffer 40 * @set: get or set request(optional) 41 * @magic: magic number for verification 42 */ 43struct brcmf_vndr_dcmd_hdr { 44 uint cmd; 45 int len; 46 uint offset; 47 uint set; 48 uint magic; 49}; 50 51extern const struct wiphy_vendor_command brcmf_vendor_cmds[]; 52 53#endif /* _vendor_h_ */