Merge branch develop-3.10-next
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rkwifi / bcmdhd / wl_cfgvendor.h
1 /*
2  * Linux cfg80211 Vendor Extension Code
3  *
4  * $Copyright Open Broadcom Corporation$
5  *
6  * $Id: wl_cfgvendor.h 455257 2014-02-20 08:10:24Z $
7  */
8
9
10 #ifndef _wl_cfgvendor_h_
11 #define _wl_cfgvendor_h_
12
13 #if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 14, 0)) && !defined(VENDOR_EXT_SUPPORT)
14 #define VENDOR_EXT_SUPPORT
15 #endif /* LINUX_VERSION_CODE > KERNEL_VERSION(3, 14, 0) && !VENDOR_EXT_SUPPORT */
16
17 enum wl_vendor_event {
18         BRCM_VENDOR_EVENT_UNSPEC,
19         BRCM_VENDOR_EVENT_PRIV_STR
20 };
21
22 /* Capture the BRCM_VENDOR_SUBCMD_PRIV_STRINGS* here */
23 #define BRCM_VENDOR_SCMD_CAPA   "cap"
24
25 #ifdef VENDOR_EXT_SUPPORT
26 extern int cfgvendor_attach(struct wiphy *wiphy);
27 extern int cfgvendor_detach(struct wiphy *wiphy);
28 #else
29 static INLINE int cfgvendor_attach(struct wiphy *wiphy) { return 0; }
30 static INLINE int cfgvendor_detach(struct wiphy *wiphy) { return 0; }
31 #endif /*  VENDOR_EXT_SUPPORT */
32
33 #endif /* _wl_cfgvendor_h_ */