From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wldev_common.h | 42 ++++++++++++++++++++++++++++-------------- 1 files changed, 28 insertions(+), 14 deletions(-) diff --git a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wldev_common.h b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wldev_common.h index aa3d25a..5072479 100644 --- a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wldev_common.h +++ b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/wldev_common.h @@ -1,15 +1,16 @@ -/* SPDX-License-Identifier: GPL-2.0 */ /* * Common function shared by Linux WEXT, cfg80211 and p2p drivers * - * Copyright (C) 1999-2019, Broadcom Corporation - * + * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation + * + * Copyright (C) 1999-2017, Broadcom Corporation + * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License version 2 (the "GPL"), * available at http://www.broadcom.com/licenses/GPLv2.php, with the * following added to such license: - * + * * As a special exception, the copyright holders of this software give you * permission to link this software with independent modules, and to copy and * distribute the resulting executable under terms of your choice, provided that @@ -17,7 +18,7 @@ * the license of that module. An independent module is a module which is not * derived from this software. The special exception does not apply to any * modifications of the software. - * + * * Notwithstanding the above, under no circumstances may you combine this * software in any way with any other Broadcom software provided under a license * other than the GPL, without Broadcom's express prior written consent. @@ -25,7 +26,7 @@ * * <<Broadcom-WL-IPTag/Open:>> * - * $Id: wldev_common.h 556083 2015-05-12 14:03:00Z $ + * $Id: wldev_common.h 695669 2017-04-21 13:04:52Z $ */ #ifndef __WLDEV_COMMON_H__ #define __WLDEV_COMMON_H__ @@ -36,22 +37,26 @@ * netdev_ops->ndo_do_ioctl in new kernels) * @dev: the net_device handle */ -s32 wldev_ioctl( - struct net_device *dev, u32 cmd, void *arg, u32 len, u32 set); + +s32 wldev_ioctl_get( + struct net_device *dev, u32 cmd, void *arg, u32 len); + +s32 wldev_ioctl_set( + struct net_device *dev, u32 cmd, const void *arg, u32 len); /** Retrieve named IOVARs, this function calls wl_dev_ioctl with * WLC_GET_VAR IOCTL code */ s32 wldev_iovar_getbuf( struct net_device *dev, s8 *iovar_name, - void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); + const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); /** Set named IOVARs, this function calls wl_dev_ioctl with * WLC_SET_VAR IOCTL code */ s32 wldev_iovar_setbuf( struct net_device *dev, s8 *iovar_name, - void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); + const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); s32 wldev_iovar_setint( struct net_device *dev, s8 *iovar, s32 val); @@ -64,7 +69,7 @@ */ s32 wldev_mkiovar_bsscfg( - const s8 *iovar_name, s8 *param, s32 paramlen, + const s8 *iovar_name, const s8 *param, s32 paramlen, s8 *iovar_buf, s32 buflen, s32 bssidx); /** Retrieve named and bsscfg indexed IOVARs, this function calls wl_dev_ioctl with @@ -78,7 +83,7 @@ * WLC_SET_VAR IOCTL code */ s32 wldev_iovar_setbuf_bsscfg( - struct net_device *dev, s8 *iovar_name, void *param, s32 paramlen, + struct net_device *dev, const s8 *iovar_name, const void *param, s32 paramlen, void *buf, s32 buflen, s32 bsscfg_idx, struct mutex* buf_sync); s32 wldev_iovar_getint_bsscfg( @@ -95,7 +100,9 @@ extern void dhd_get_customized_country_code(struct net_device *dev, char *country_iso_code, wl_country_t *cspec); extern void dhd_bus_country_set(struct net_device *dev, wl_country_t *cspec, bool notify); +#ifdef OEM_ANDROID extern bool dhd_force_country_change(struct net_device *dev); +#endif // endif extern void dhd_bus_band_set(struct net_device *dev, uint band); extern int wldev_set_country(struct net_device *dev, char *country_code, bool notify, bool user_enforced, int revinfo); @@ -106,8 +113,15 @@ extern int net_os_set_dtim_skip(struct net_device *dev, int val); extern int net_os_set_suspend_disable(struct net_device *dev, int val); extern int net_os_set_suspend(struct net_device *dev, int val, int force); -extern int wl_iw_parse_ssid_list_tlv(char** list_str, wlc_ssid_ext_t* ssid, +extern int net_os_set_suspend_bcn_li_dtim(struct net_device *dev, int val); +extern int net_os_set_max_dtim_enable(struct net_device *dev, int val); +#ifdef DISABLE_DTIM_IN_SUSPEND +extern int net_os_set_disable_dtim_in_suspend(struct net_device *dev, int val); +#endif /* DISABLE_DTIM_IN_SUSPEND */ +#if defined(OEM_ANDROID) +extern int wl_parse_ssid_list_tlv(char** list_str, wlc_ssid_ext_t* ssid, int max, int *bytes_left); +#endif /* defined(OEM_ANDROID) */ /* Get the link speed from dongle, speed is in kpbs */ int wldev_get_link_speed(struct net_device *dev, int *plink_speed); @@ -117,7 +131,7 @@ int wldev_get_ssid(struct net_device *dev, wlc_ssid_t *pssid); int wldev_get_band(struct net_device *dev, uint *pband); -int wldev_get_mode(struct net_device *dev, uint8 *pband); +int wldev_get_mode(struct net_device *dev, uint8 *pband, uint8 caplen); int wldev_get_datarate(struct net_device *dev, int *datarate); int wldev_set_band(struct net_device *dev, uint band); -- Gitblit v1.6.2