diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-30 08:25:59 +0000 |
| commit | 8e4bff4cab0ddac6060645b0715210484d02ff40 (patch) | |
| tree | 3a5c3024371a04692a3a6d9974d001cdff8ebf84 /drivers/net/wireless/bcmdhd/wl_cfgvendor.h | |
Diffstat (limited to 'drivers/net/wireless/bcmdhd/wl_cfgvendor.h')
| -rw-r--r-- | drivers/net/wireless/bcmdhd/wl_cfgvendor.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/wl_cfgvendor.h b/drivers/net/wireless/bcmdhd/wl_cfgvendor.h new file mode 100644 index 00000000..a98c2c2b --- /dev/null +++ b/drivers/net/wireless/bcmdhd/wl_cfgvendor.h @@ -0,0 +1,37 @@ +/* + * Linux cfg80211 Vendor Extension Code + * + * $Copyright Open Broadcom Corporation$ + * + * $Id: wl_cfgvendor.h 455257 2014-02-20 08:10:24Z $ + */ + +/* + * New vendor interface additon to nl80211/cfg80211 to allow vendors + * to implement proprietary features over the cfg80211 stack. + */ + +#ifndef _wl_cfgvendor_h_ +#define _wl_cfgvendor_h_ + +#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 14, 0)) && !defined(VENDOR_EXT_SUPPORT) +#define VENDOR_EXT_SUPPORT +#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(3, 14, 0) && !VENDOR_EXT_SUPPORT */ + +enum wl_vendor_event { + BRCM_VENDOR_EVENT_UNSPEC, + BRCM_VENDOR_EVENT_PRIV_STR +}; + +/* Capture the BRCM_VENDOR_SUBCMD_PRIV_STRINGS* here */ +#define BRCM_VENDOR_SCMD_CAPA "cap" + +#ifdef VENDOR_EXT_SUPPORT +extern int cfgvendor_attach(struct wiphy *wiphy); +extern int cfgvendor_detach(struct wiphy *wiphy); +#else +static INLINE int cfgvendor_attach(struct wiphy *wiphy) { return 0; } +static INLINE int cfgvendor_detach(struct wiphy *wiphy) { return 0; } +#endif /* VENDOR_EXT_SUPPORT */ + +#endif /* _wl_cfgvendor_h_ */ |
