Skip to content

Commit cc0d5a5

Browse files
xiaoyao888888numbqq
authored andcommitted
net: rockchip_wlan: rtl8189fs: support gpio to wake up for wowlan
Change-Id: I7500c96d21c07c453e4dd6e81a393c08f48728f7 Signed-off-by: Yao Xiao <[email protected]>
1 parent d59cdea commit cc0d5a5

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

drivers/net/wireless/rockchip_wlan/rtl8189fs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ CONFIG_ANTENNA_DIVERSITY = n
7171
CONFIG_TDLS = n
7272
CONFIG_WIFI_MONITOR = n
7373
######################## Wake On Lan ##########################
74-
CONFIG_WOWLAN = n
75-
CONFIG_GPIO_WAKEUP = n
74+
CONFIG_WOWLAN = y
75+
CONFIG_GPIO_WAKEUP = y
7676
CONFIG_WAKEUP_GPIO_IDX = default
7777
CONFIG_HIGH_ACTIVE = n
7878
CONFIG_PNO_SUPPORT = n

drivers/net/wireless/rockchip_wlan/rtl8189fs/hal/hal_com.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@ static void rtw_hal_release_rx_dma(_adapter *adapter)
20392039

20402040
rtw_write32(adapter, REG_RXPKT_NUM, (val32 & (~RW_RELEASE_EN)));
20412041

2042-
DBG_871X("%s, [0x%04x]: 0x%08x\n",
2042+
DBG_871X("%s, [0x%04x]: 0x%08lx\n",
20432043
__func__, REG_RXPKT_NUM, (val32 & (~RW_RELEASE_EN)));
20442044
}
20452045

drivers/net/wireless/rockchip_wlan/rtl8189fs/include/autoconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
/*
225225
* Debug Related Config
226226
*/
227-
#define CONFIG_DEBUG /* DBG_871X, etc... */
227+
//#define CONFIG_DEBUG /* DBG_871X, etc... */
228228

229229
#ifdef CONFIG_DEBUG
230230
#define DBG 1 // for ODM & BTCOEX debug

drivers/net/wireless/rockchip_wlan/rtl8189fs/include/wifi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
//#error "BIT define occurred earlier elsewhere!\n"
2626
#undef BIT
2727
#endif
28-
#define BIT(x) (1 << (x))
28+
#define BIT(x) (1UL << (x))
2929

3030

3131
#define WLAN_ETHHDR_LEN 14

drivers/net/wireless/rockchip_wlan/rtl8189fs/platform/platform_ops.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
*
1919
******************************************************************************/
2020
#ifndef CONFIG_PLATFORM_OPS
21+
22+
#include <linux/rfkill-wlan.h>
23+
extern unsigned int oob_irq;
24+
2125
/*
2226
* Return:
2327
* 0: power on successfully
@@ -27,6 +31,7 @@ int platform_wifi_power_on(void)
2731
{
2832
int ret = 0;
2933

34+
oob_irq = rockchip_wifi_get_oob_irq();
3035

3136
return ret;
3237
}

0 commit comments

Comments
 (0)