mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
34ef8dbe02
Change call sites of r8712_set_802_11_add_wep to check for 0 and non-zero values (e.g -EINVAL, -ENOMEM) instead of for _SUCCESS and _FAIL. Change return values of r8712_set_802_11_add_wep from true and false and _SUCCESS to -EINVAL and the return value of r8712_set_key. Change return type from u8 to int to accommodate these new return values. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190722092341.21030-6-nishkadg.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
|
|
*
|
|
* Modifications for inclusion into the Linux staging tree are
|
|
* Copyright(c) 2010 Larry Finger. All rights reserved.
|
|
*
|
|
* Contact information:
|
|
* WLAN FAE <wlanfae@realtek.com>
|
|
* Larry Finger <Larry.Finger@lwfinger.net>
|
|
*
|
|
******************************************************************************/
|
|
#ifndef __IOCTL_SET_H
|
|
#define __IOCTL_SET_H
|
|
|
|
#include "drv_types.h"
|
|
|
|
typedef u8 NDIS_802_11_PMKID_VALUE[16];
|
|
|
|
struct BSSIDInfo {
|
|
unsigned char BSSID[6];
|
|
NDIS_802_11_PMKID_VALUE PMKID;
|
|
};
|
|
|
|
u8 r8712_set_802_11_authentication_mode(struct _adapter *pdapter,
|
|
enum NDIS_802_11_AUTHENTICATION_MODE authmode);
|
|
|
|
u8 r8712_set_802_11_bssid(struct _adapter *padapter, u8 *bssid);
|
|
|
|
int r8712_set_802_11_add_wep(struct _adapter *padapter,
|
|
struct NDIS_802_11_WEP *wep);
|
|
|
|
u8 r8712_set_802_11_disassociate(struct _adapter *padapter);
|
|
|
|
u8 r8712_set_802_11_bssid_list_scan(struct _adapter *padapter);
|
|
|
|
void r8712_set_802_11_infrastructure_mode(struct _adapter *padapter,
|
|
enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype);
|
|
|
|
void r8712_set_802_11_ssid(struct _adapter *padapter,
|
|
struct ndis_802_11_ssid *ssid);
|
|
|
|
#endif
|
|
|