summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/009-hostapd-support.patch
blob: 81689bb03fa7388bd59656d7af61a958a4d656ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
commit a824c8afe0a79e248056e7160a3c590d8eaaae54
Author: Roman Yeryomin <roman@advem.lv>
Date:   Tue Feb 5 02:10:00 2013 +0200

    adopt 009-hostapd-support.patch
    
    Signed-off-by: Roman Yeryomin <roman@advem.lv>

diff --git a/drivers/net/wireless/rtl8192cd/8192cd_cfg.h b/drivers/net/wireless/rtl8192cd/8192cd_cfg.h
index ae02e5a..e2596f2 100644
--- a/drivers/net/wireless/rtl8192cd/8192cd_cfg.h
+++ b/drivers/net/wireless/rtl8192cd/8192cd_cfg.h
@@ -357,7 +357,7 @@
 //-------------------------------------------------------------
 // WPA Supplicant 
 //-------------------------------------------------------------
-//#define WIFI_WPAS
+#define WIFI_WPAS
 
 #ifdef WIFI_WPAS
 #ifndef WIFI_HAPD
@@ -525,9 +525,10 @@
 //-------------------------------------------------------------
 // Hostapd 
 //-------------------------------------------------------------
-//#ifdef CONFIG_RTL_HOSTAPD_SUPPORT 
-//#define WIFI_HAPD
-//#endif
+#ifdef CONFIG_RTL_HOSTAPD_SUPPORT
+#define WIFI_HAPD
+#endif
+
 #ifdef CONFIG_RTL_P2P_SUPPORT
 #define P2P_SUPPORT  //  support for WIFI_Direct
 //#define P2P_DEBUGMSG
@@ -1836,3 +1837,7 @@
 
 #endif // _8192CD_CFG_H_
 
+#ifndef WIFI_HAPD
+#error hapd not-set
+#endif
+