mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
staging: rtl8188eu: remove rtl8188eu driver from staging dir
This driver was deprecated with the introduction of the r8188eu driver, based upon Realtek sources that were modified for CFG80211 support and other fixes on GitHub by Larry Finger. As that driver is now progressing at pace, we should remove this one. Signed-off-by: Phillip Potter <phil@philpotter.co.uk> Link: https://lore.kernel.org/r/20210731133809.196681-1-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
06889446a7
commit
55dfa29b43
@@ -36,8 +36,6 @@ source "drivers/staging/rtl8723bs/Kconfig"
|
||||
|
||||
source "drivers/staging/rtl8712/Kconfig"
|
||||
|
||||
source "drivers/staging/rtl8188eu/Kconfig"
|
||||
|
||||
source "drivers/staging/r8188eu/Kconfig"
|
||||
|
||||
source "drivers/staging/rts5208/Kconfig"
|
||||
|
||||
@@ -8,7 +8,6 @@ obj-$(CONFIG_RTL8192U) += rtl8192u/
|
||||
obj-$(CONFIG_RTL8192E) += rtl8192e/
|
||||
obj-$(CONFIG_RTL8723BS) += rtl8723bs/
|
||||
obj-$(CONFIG_R8712U) += rtl8712/
|
||||
obj-$(CONFIG_R8188EU_OLD) += rtl8188eu/
|
||||
obj-$(CONFIG_R8188EU) += r8188eu/
|
||||
obj-$(CONFIG_RTS5208) += rts5208/
|
||||
obj-$(CONFIG_NETLOGIC_XLR_NET) += netlogic/
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
config R8188EU_OLD
|
||||
tristate "Realtek RTL8188EU Wireless LAN NIC driver (DEPRECATED)"
|
||||
depends on WLAN && USB && CFG80211
|
||||
depends on m
|
||||
select WIRELESS_EXT
|
||||
select WEXT_PRIV
|
||||
select LIB80211
|
||||
select LIB80211_CRYPT_WEP
|
||||
select LIB80211_CRYPT_CCMP
|
||||
help
|
||||
This option adds the Realtek RTL8188EU USB device such as TP-Link TL-WN725N.
|
||||
If built as a module, it will be called rtl8188eu. This driver is now due to
|
||||
be dropped due to the import of a newer version.
|
||||
|
||||
if R8188EU_OLD
|
||||
|
||||
config 88EU_AP_MODE
|
||||
bool "Realtek RTL8188EU AP mode"
|
||||
default y
|
||||
help
|
||||
This option enables Access Point mode. Unless you know that your system
|
||||
will never be used as an AP, or the target system has limited memory,
|
||||
"Y" should be selected.
|
||||
|
||||
endif
|
||||
@@ -1,56 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
rtl8188eu-y := \
|
||||
core/mac_cfg.o \
|
||||
core/rtw_ap.o \
|
||||
core/rtw_cmd.o \
|
||||
core/rtw_efuse.o \
|
||||
core/rtw_ieee80211.o \
|
||||
core/rtw_ioctl_set.o \
|
||||
core/rtw_iol.o \
|
||||
core/rtw_led.o \
|
||||
core/rtw_mlme.o \
|
||||
core/rtw_mlme_ext.o \
|
||||
core/rtw_pwrctrl.o \
|
||||
core/rtw_recv.o \
|
||||
core/rtw_rf.o \
|
||||
core/rtw_security.o \
|
||||
core/rtw_sreset.o \
|
||||
core/rtw_sta_mgt.o \
|
||||
core/rtw_wlan_util.o \
|
||||
core/rtw_xmit.o \
|
||||
hal/fw.o \
|
||||
hal/bb_cfg.o \
|
||||
hal/rf_cfg.o \
|
||||
hal/pwrseqcmd.o \
|
||||
hal/pwrseq.o \
|
||||
hal/hal8188e_rate_adaptive.o \
|
||||
hal/hal_intf.o \
|
||||
hal/hal_com.o \
|
||||
hal/odm.o \
|
||||
hal/odm_hwconfig.o \
|
||||
hal/odm_rtl8188e.o \
|
||||
hal/rtl8188e_cmd.o \
|
||||
hal/rtl8188e_dm.o \
|
||||
hal/rtl8188e_hal_init.o \
|
||||
hal/phy.o \
|
||||
hal/rf.o \
|
||||
hal/rtl8188e_rxdesc.o \
|
||||
hal/rtl8188e_xmit.o \
|
||||
hal/rtl8188eu_led.o \
|
||||
hal/rtl8188eu_recv.o \
|
||||
hal/rtl8188eu_xmit.o \
|
||||
hal/usb_halinit.o \
|
||||
os_dep/ioctl_linux.o \
|
||||
os_dep/mlme_linux.o \
|
||||
os_dep/mon.o \
|
||||
os_dep/os_intfs.o \
|
||||
os_dep/osdep_service.o \
|
||||
os_dep/recv_linux.o \
|
||||
os_dep/rtw_android.o \
|
||||
os_dep/usb_intf.o \
|
||||
os_dep/usb_ops_linux.o \
|
||||
os_dep/xmit_linux.o
|
||||
|
||||
obj-$(CONFIG_R8188EU_OLD) := rtl8188eu.o
|
||||
|
||||
ccflags-y += -I$(srctree)/$(src)/include
|
||||
@@ -1,14 +0,0 @@
|
||||
TODO:
|
||||
- find and remove remaining code valid only for 5 GHz. Most of the obvious
|
||||
ones have been removed, but things like channel > 14 still exist.
|
||||
- find and remove any code for other chips that is left over
|
||||
- convert any remaining unusual variable types
|
||||
- find codes that can use %pM and %Nph formatting
|
||||
- checkpatch.pl fixes - most of the remaining ones are lines too long. Many
|
||||
of them will require refactoring
|
||||
- merge Realtek's bugfixes and new features into the driver
|
||||
- switch to use LIB80211
|
||||
- switch to use MAC80211
|
||||
|
||||
Please send any patches to Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
|
||||
and Larry Finger <Larry.Finger@lwfinger.net>.
|
||||
@@ -1,120 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#include "odm_precomp.h"
|
||||
#include "phy.h"
|
||||
|
||||
/* MAC_REG.TXT */
|
||||
|
||||
static u32 array_MAC_REG[] = {
|
||||
0x026, 0x00000041,
|
||||
0x027, 0x00000035,
|
||||
0x428, 0x0000000A,
|
||||
0x429, 0x00000010,
|
||||
0x430, 0x00000000,
|
||||
0x431, 0x00000001,
|
||||
0x432, 0x00000002,
|
||||
0x433, 0x00000004,
|
||||
0x434, 0x00000005,
|
||||
0x435, 0x00000006,
|
||||
0x436, 0x00000007,
|
||||
0x437, 0x00000008,
|
||||
0x438, 0x00000000,
|
||||
0x439, 0x00000000,
|
||||
0x43A, 0x00000001,
|
||||
0x43B, 0x00000002,
|
||||
0x43C, 0x00000004,
|
||||
0x43D, 0x00000005,
|
||||
0x43E, 0x00000006,
|
||||
0x43F, 0x00000007,
|
||||
0x440, 0x0000005D,
|
||||
0x441, 0x00000001,
|
||||
0x442, 0x00000000,
|
||||
0x444, 0x00000015,
|
||||
0x445, 0x000000F0,
|
||||
0x446, 0x0000000F,
|
||||
0x447, 0x00000000,
|
||||
0x458, 0x00000041,
|
||||
0x459, 0x000000A8,
|
||||
0x45A, 0x00000072,
|
||||
0x45B, 0x000000B9,
|
||||
0x460, 0x00000066,
|
||||
0x461, 0x00000066,
|
||||
0x480, 0x00000008,
|
||||
0x4C8, 0x000000FF,
|
||||
0x4C9, 0x00000008,
|
||||
0x4CC, 0x000000FF,
|
||||
0x4CD, 0x000000FF,
|
||||
0x4CE, 0x00000001,
|
||||
0x4D3, 0x00000001,
|
||||
0x500, 0x00000026,
|
||||
0x501, 0x000000A2,
|
||||
0x502, 0x0000002F,
|
||||
0x503, 0x00000000,
|
||||
0x504, 0x00000028,
|
||||
0x505, 0x000000A3,
|
||||
0x506, 0x0000005E,
|
||||
0x507, 0x00000000,
|
||||
0x508, 0x0000002B,
|
||||
0x509, 0x000000A4,
|
||||
0x50A, 0x0000005E,
|
||||
0x50B, 0x00000000,
|
||||
0x50C, 0x0000004F,
|
||||
0x50D, 0x000000A4,
|
||||
0x50E, 0x00000000,
|
||||
0x50F, 0x00000000,
|
||||
0x512, 0x0000001C,
|
||||
0x514, 0x0000000A,
|
||||
0x516, 0x0000000A,
|
||||
0x525, 0x0000004F,
|
||||
0x550, 0x00000010,
|
||||
0x551, 0x00000010,
|
||||
0x559, 0x00000002,
|
||||
0x55D, 0x000000FF,
|
||||
0x605, 0x00000030,
|
||||
0x608, 0x0000000E,
|
||||
0x609, 0x0000002A,
|
||||
0x620, 0x000000FF,
|
||||
0x621, 0x000000FF,
|
||||
0x622, 0x000000FF,
|
||||
0x623, 0x000000FF,
|
||||
0x624, 0x000000FF,
|
||||
0x625, 0x000000FF,
|
||||
0x626, 0x000000FF,
|
||||
0x627, 0x000000FF,
|
||||
0x652, 0x00000020,
|
||||
0x63C, 0x0000000A,
|
||||
0x63D, 0x0000000A,
|
||||
0x63E, 0x0000000E,
|
||||
0x63F, 0x0000000E,
|
||||
0x640, 0x00000040,
|
||||
0x66E, 0x00000005,
|
||||
0x700, 0x00000021,
|
||||
0x701, 0x00000043,
|
||||
0x702, 0x00000065,
|
||||
0x703, 0x00000087,
|
||||
0x708, 0x00000021,
|
||||
0x709, 0x00000043,
|
||||
0x70A, 0x00000065,
|
||||
0x70B, 0x00000087,
|
||||
};
|
||||
|
||||
bool phy_mac_config(struct adapter *adapt)
|
||||
{
|
||||
u32 i;
|
||||
u32 arraylength;
|
||||
u32 *ptrarray;
|
||||
|
||||
arraylength = ARRAY_SIZE(array_MAC_REG);
|
||||
ptrarray = array_MAC_REG;
|
||||
|
||||
for (i = 0; i < arraylength; i += 2)
|
||||
usb_write8(adapt, ptrarray[i], (u8)ptrarray[i + 1]);
|
||||
|
||||
usb_write8(adapt, REG_MAX_AGGR_NUM, MAX_AGGR_NUM);
|
||||
return true;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,19 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#include <rtw_iol.h>
|
||||
|
||||
bool rtw_iol_applied(struct adapter *adapter)
|
||||
{
|
||||
if (adapter->registrypriv.fw_iol == 1)
|
||||
return true;
|
||||
|
||||
if (adapter->registrypriv.fw_iol == 2 &&
|
||||
!adapter_to_dvobj(adapter)->ishighspeed)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
@@ -1,460 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#include <drv_types.h>
|
||||
#include "rtw_led.h"
|
||||
|
||||
/* */
|
||||
/* Description: */
|
||||
/* Callback function of LED BlinkTimer, */
|
||||
/* it just schedules to corresponding BlinkWorkItem/led_blink_hdl */
|
||||
/* */
|
||||
static void BlinkTimerCallback(struct timer_list *t)
|
||||
{
|
||||
struct LED_871x *pLed = from_timer(pLed, t, BlinkTimer);
|
||||
struct adapter *padapter = pLed->padapter;
|
||||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return;
|
||||
|
||||
schedule_work(&pLed->BlinkWorkItem);
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Description: */
|
||||
/* Callback function of LED BlinkWorkItem. */
|
||||
/* */
|
||||
void BlinkWorkItemCallback(struct work_struct *work)
|
||||
{
|
||||
struct LED_871x *pLed = container_of(work, struct LED_871x,
|
||||
BlinkWorkItem);
|
||||
|
||||
blink_handler(pLed);
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Description: */
|
||||
/* Reset status of LED_871x object. */
|
||||
/* */
|
||||
void ResetLedStatus(struct LED_871x *pLed)
|
||||
{
|
||||
pLed->CurrLedState = RTW_LED_OFF; /* Current LED state. */
|
||||
pLed->led_on = false; /* true if LED is ON, false if LED is OFF. */
|
||||
|
||||
pLed->bLedBlinkInProgress = false; /* true if it is blinking, false o.w.. */
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
|
||||
pLed->BlinkTimes = 0; /* Number of times to toggle led state for blinking. */
|
||||
pLed->BlinkingLedState = LED_UNKNOWN; /* Next state for blinking, either RTW_LED_ON or RTW_LED_OFF are. */
|
||||
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
pLed->bLedScanBlinkInProgress = false;
|
||||
}
|
||||
|
||||
/*Description: */
|
||||
/* Initialize an LED_871x object. */
|
||||
void InitLed871x(struct adapter *padapter, struct LED_871x *pLed)
|
||||
{
|
||||
pLed->padapter = padapter;
|
||||
|
||||
ResetLedStatus(pLed);
|
||||
|
||||
timer_setup(&pLed->BlinkTimer, BlinkTimerCallback, 0);
|
||||
|
||||
INIT_WORK(&pLed->BlinkWorkItem, BlinkWorkItemCallback);
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Description: */
|
||||
/* DeInitialize an LED_871x object. */
|
||||
/* */
|
||||
void DeInitLed871x(struct LED_871x *pLed)
|
||||
{
|
||||
cancel_work_sync(&pLed->BlinkWorkItem);
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
ResetLedStatus(pLed);
|
||||
}
|
||||
|
||||
/* */
|
||||
/* Description: */
|
||||
/* Implementation of LED blinking behavior. */
|
||||
/* It toggle off LED and schedule corresponding timer if necessary. */
|
||||
/* */
|
||||
|
||||
static void SwLedBlink1(struct LED_871x *pLed)
|
||||
{
|
||||
struct adapter *padapter = pLed->padapter;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
||||
/* Change LED according to BlinkingLedState specified. */
|
||||
if (pLed->BlinkingLedState == RTW_LED_ON)
|
||||
sw_led_on(padapter, pLed);
|
||||
else
|
||||
sw_led_off(padapter, pLed);
|
||||
|
||||
if (padapter->pwrctrlpriv.rf_pwrstate != rf_on) {
|
||||
sw_led_off(padapter, pLed);
|
||||
ResetLedStatus(pLed);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pLed->CurrLedState) {
|
||||
case LED_BLINK_SLOWLY:
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_BLINK_NORMAL:
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_LINK_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_BLINK_SCAN:
|
||||
pLed->BlinkTimes--;
|
||||
if (pLed->BlinkTimes == 0) {
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
pLed->bLedLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_NORMAL;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_LINK_INTERVAL_ALPHA));
|
||||
} else if (!check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
pLed->bLedNoLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SLOWLY;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA));
|
||||
}
|
||||
pLed->bLedScanBlinkInProgress = false;
|
||||
} else {
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_SCAN_INTERVAL_ALPHA));
|
||||
}
|
||||
break;
|
||||
case LED_BLINK_TXRX:
|
||||
pLed->BlinkTimes--;
|
||||
if (pLed->BlinkTimes == 0) {
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
pLed->bLedLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_NORMAL;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_LINK_INTERVAL_ALPHA));
|
||||
} else if (!check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
pLed->bLedNoLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SLOWLY;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA));
|
||||
}
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
} else {
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_FASTER_INTERVAL_ALPHA));
|
||||
}
|
||||
break;
|
||||
case LED_BLINK_WPS:
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_SCAN_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_BLINK_WPS_STOP: /* WPS success */
|
||||
if (pLed->BlinkingLedState != RTW_LED_ON) {
|
||||
pLed->bLedLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_NORMAL;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_LINK_INTERVAL_ALPHA));
|
||||
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
} else {
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_WPS_SUCCESS_INTERVAL_ALPHA));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* ALPHA, added by chiyoko, 20090106 */
|
||||
static void SwLedControlMode1(struct adapter *padapter, enum LED_CTL_MODE LedAction)
|
||||
{
|
||||
struct led_priv *ledpriv = &padapter->ledpriv;
|
||||
struct LED_871x *pLed = &ledpriv->sw_led;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
|
||||
switch (LedAction) {
|
||||
case LED_CTL_POWER_ON:
|
||||
case LED_CTL_START_TO_LINK:
|
||||
case LED_CTL_NO_LINK:
|
||||
if (pLed->bLedNoLinkBlinkInProgress)
|
||||
break;
|
||||
if (pLed->CurrLedState == LED_BLINK_SCAN ||
|
||||
IS_LED_WPS_BLINKING(pLed))
|
||||
return;
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedNoLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SLOWLY;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_LINK:
|
||||
if (pLed->bLedLinkBlinkInProgress)
|
||||
break;
|
||||
if (pLed->CurrLedState == LED_BLINK_SCAN ||
|
||||
IS_LED_WPS_BLINKING(pLed))
|
||||
return;
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_NORMAL;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_LINK_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_SITE_SURVEY:
|
||||
if (pmlmepriv->LinkDetectInfo.bBusyTraffic &&
|
||||
check_fwstate(pmlmepriv, _FW_LINKED))
|
||||
break;
|
||||
if (pLed->bLedScanBlinkInProgress)
|
||||
break;
|
||||
if (IS_LED_WPS_BLINKING(pLed))
|
||||
return;
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedScanBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SCAN;
|
||||
pLed->BlinkTimes = 24;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_SCAN_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_TX:
|
||||
case LED_CTL_RX:
|
||||
if (pLed->bLedBlinkInProgress)
|
||||
break;
|
||||
if (pLed->CurrLedState == LED_BLINK_SCAN ||
|
||||
IS_LED_WPS_BLINKING(pLed))
|
||||
return;
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_TXRX;
|
||||
pLed->BlinkTimes = 2;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_FASTER_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_START_WPS: /* wait until xinpin finish */
|
||||
case LED_CTL_START_WPS_BOTTON:
|
||||
if (pLed->bLedWPSBlinkInProgress)
|
||||
break;
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedScanBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedScanBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedWPSBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_WPS;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_SCAN_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_STOP_WPS:
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedScanBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedScanBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedWPSBlinkInProgress)
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
else
|
||||
pLed->bLedWPSBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_WPS_STOP;
|
||||
if (pLed->led_on) {
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_WPS_SUCCESS_INTERVAL_ALPHA));
|
||||
} else {
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer,
|
||||
jiffies + msecs_to_jiffies(0));
|
||||
}
|
||||
break;
|
||||
case LED_CTL_STOP_WPS_FAIL:
|
||||
if (pLed->bLedWPSBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
}
|
||||
pLed->bLedNoLinkBlinkInProgress = true;
|
||||
pLed->CurrLedState = LED_BLINK_SLOWLY;
|
||||
if (pLed->led_on)
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
else
|
||||
pLed->BlinkingLedState = RTW_LED_ON;
|
||||
mod_timer(&pLed->BlinkTimer, jiffies +
|
||||
msecs_to_jiffies(LED_BLINK_NO_LINK_INTERVAL_ALPHA));
|
||||
break;
|
||||
case LED_CTL_POWER_OFF:
|
||||
pLed->CurrLedState = RTW_LED_OFF;
|
||||
pLed->BlinkingLedState = RTW_LED_OFF;
|
||||
if (pLed->bLedNoLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedNoLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedLinkBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedLinkBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedWPSBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedWPSBlinkInProgress = false;
|
||||
}
|
||||
if (pLed->bLedScanBlinkInProgress) {
|
||||
del_timer_sync(&pLed->BlinkTimer);
|
||||
pLed->bLedScanBlinkInProgress = false;
|
||||
}
|
||||
sw_led_off(padapter, pLed);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void blink_handler(struct LED_871x *pLed)
|
||||
{
|
||||
struct adapter *padapter = pLed->padapter;
|
||||
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped)
|
||||
return;
|
||||
|
||||
SwLedBlink1(pLed);
|
||||
}
|
||||
|
||||
void led_control_8188eu(struct adapter *padapter, enum LED_CTL_MODE LedAction)
|
||||
{
|
||||
if (padapter->bSurpriseRemoved || padapter->bDriverStopped ||
|
||||
!padapter->hw_init_completed)
|
||||
return;
|
||||
|
||||
if ((padapter->pwrctrlpriv.rf_pwrstate != rf_on &&
|
||||
padapter->pwrctrlpriv.rfoff_reason > RF_CHANGE_BY_PS) &&
|
||||
(LedAction == LED_CTL_TX || LedAction == LED_CTL_RX ||
|
||||
LedAction == LED_CTL_SITE_SURVEY ||
|
||||
LedAction == LED_CTL_LINK ||
|
||||
LedAction == LED_CTL_NO_LINK ||
|
||||
LedAction == LED_CTL_POWER_ON))
|
||||
return;
|
||||
|
||||
SwLedControlMode1(padapter, LedAction);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,58 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
#define _RTW_RF_C_
|
||||
|
||||
#include <osdep_service.h>
|
||||
#include <drv_types.h>
|
||||
#include <recv_osdep.h>
|
||||
#include <xmit_osdep.h>
|
||||
|
||||
struct ch_freq {
|
||||
u32 channel;
|
||||
u32 frequency;
|
||||
};
|
||||
|
||||
static struct ch_freq ch_freq_map[] = {
|
||||
{1, 2412}, {2, 2417}, {3, 2422}, {4, 2427}, {5, 2432},
|
||||
{6, 2437}, {7, 2442}, {8, 2447}, {9, 2452}, {10, 2457},
|
||||
{11, 2462}, {12, 2467}, {13, 2472}, {14, 2484},
|
||||
/* UNII */
|
||||
{36, 5180}, {40, 5200}, {44, 5220}, {48, 5240}, {52, 5260},
|
||||
{56, 5280}, {60, 5300}, {64, 5320}, {149, 5745}, {153, 5765},
|
||||
{157, 5785}, {161, 5805}, {165, 5825}, {167, 5835}, {169, 5845},
|
||||
{171, 5855}, {173, 5865},
|
||||
/* HiperLAN2 */
|
||||
{100, 5500}, {104, 5520}, {108, 5540}, {112, 5560}, {116, 5580},
|
||||
{120, 5600}, {124, 5620}, {128, 5640}, {132, 5660}, {136, 5680},
|
||||
{140, 5700},
|
||||
/* Japan MMAC */
|
||||
{34, 5170}, {38, 5190}, {42, 5210}, {46, 5230},
|
||||
/* Japan */
|
||||
{184, 4920}, {188, 4940}, {192, 4960}, {196, 4980},
|
||||
{208, 5040},/* Japan, means J08 */
|
||||
{212, 5060},/* Japan, means J12 */
|
||||
{216, 5080},/* Japan, means J16 */
|
||||
};
|
||||
|
||||
static int ch_freq_map_num = ARRAY_SIZE(ch_freq_map);
|
||||
|
||||
u32 rtw_ch2freq(u32 channel)
|
||||
{
|
||||
u8 i;
|
||||
u32 freq = 0;
|
||||
|
||||
for (i = 0; i < ch_freq_map_num; i++) {
|
||||
if (channel == ch_freq_map[i].channel) {
|
||||
freq = ch_freq_map[i].frequency;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == ch_freq_map_num)
|
||||
freq = 2412;
|
||||
|
||||
return freq;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,21 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/******************************************************************************
|
||||
*
|
||||
* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#include <rtw_sreset.h>
|
||||
#include <usb_ops_linux.h>
|
||||
|
||||
void rtw_hal_sreset_init(struct adapter *padapter)
|
||||
{
|
||||
struct sreset_priv *psrtpriv = &padapter->HalData->srestpriv;
|
||||
|
||||
psrtpriv->wifi_error_status = WIFI_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
void sreset_set_wifi_error_status(struct adapter *padapter, u32 status)
|
||||
{
|
||||
padapter->HalData->srestpriv.wifi_error_status = status;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user