[Debian-eeepc-devel] [SCM] rt2860 source for the ralink wireless chip in the eeepc 901. branch, master, updated. f733f3667deb0851676a0b05550131f3b66b707f

Glenn Saberton gsaberton at foomagic.org
Fri Aug 29 03:50:00 UTC 2008


The following commit has been merged in the master branch:
commit dd9635fd84ef6f011928b9289167d530a6deb3bc
Author: Glenn Saberton <gsaberton at foomagic.org>
Date:   Fri Aug 29 11:44:09 2008 +0800

    Add patch for eeepc wpa support.
    
    This patch was generated from the source tarball linked on the wiki.

diff --git a/rt2860-1.7.0.0/debian/patches/03_wpa-fix.patch b/rt2860-1.7.0.0/debian/patches/03_wpa-fix.patch
new file mode 100644
index 0000000..f3df384
--- /dev/null
+++ b/rt2860-1.7.0.0/debian/patches/03_wpa-fix.patch
@@ -0,0 +1,75 @@
+From 20c96c119fc18247aa95b66380bb603a53034c1b Mon Sep 17 00:00:00 2001
+From: Glenn Saberton <gsaberton at foomagic.org>
+Date: Fri, 29 Aug 2008 11:36:35 +0800
+Subject: [PATCH] Patch for eeepc wpa support.
+
+---
+ rt2860-1.7.0.0/common/mlme.c      |   15 +++++++++++++++
+ rt2860-1.7.0.0/os/linux/config.mk |   10 ++++++++--
+ 2 files changed, 23 insertions(+), 2 deletions(-)
+
+diff --git a/rt2860-1.7.0.0/common/mlme.c b/rt2860-1.7.0.0/common/mlme.c
+index 015aa5e..1a8ebdf 100644
+--- a/common/mlme.c
++++ b/common/mlme.c
+@@ -772,6 +772,21 @@ VOID MlmePeriodicExec(
+ 	ULONG			TxTotalCnt;
+ 	PRTMP_ADAPTER	pAd = (RTMP_ADAPTER *)FunctionContext;
+ 
++#ifdef EEEPC_SPECIAL_SETTING
++	//Baron 2008/07/10
++	//printk("Baron_Test:\t%s", RTMPGetRalinkEncryModeStr(pAd->StaCfg.WepStatus));
++	//If the STA security setting is OPEN or WEP, pAd->StaCfg.WpaSupplicantUP = 0.
++	//If the STA security setting is WPAPSK or WPA2PSK, pAd->StaCfg.WpaSupplicantUP = 1.
++	if(pAd->StaCfg.WepStatus<2)
++	{
++		pAd->StaCfg.WpaSupplicantUP = 0;
++	}
++	else
++	{
++		pAd->StaCfg.WpaSupplicantUP = 1;
++	}	
++#endif
++
+ #ifdef CONFIG_STA_SUPPORT
+ #ifdef RT2860
+ 	IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
+diff --git a/rt2860-1.7.0.0/os/linux/config.mk b/rt2860-1.7.0.0/os/linux/config.mk
+index af961c6..84838ba 100644
+--- a/os/linux/config.mk
++++ b/os/linux/config.mk
+@@ -5,10 +5,10 @@ HAS_ATE=n
+ HAS_28xx_QA=n
+ 
+ # Support Wpa_Supplicant
+-HAS_WPA_SUPPLICANT=n
++HAS_WPA_SUPPLICANT=y
+ 
+ # Support Native WpaSupplicant for Network Maganger
+-HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
++HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
+ 
+ #Support Net interface block while Tx-Sw queue full
+ HAS_BLOCK_NET_IF=n
+@@ -45,12 +45,18 @@ HAS_SNMP_SUPPORT=n
+ #Support features of 802.11n Draft3
+ HAS_DOT11N_DRAFT3_SUPPORT=n
+ 
++#Support EeePC Special setting
++HAS_EEEPC_SPECIAL_SETTING=y
+ 
+ CC := $(CROSS_COMPILE)gcc
+ LD := $(CROSS_COMPILE)ld
+ 
+ WFLAGS := -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT  -DLINUX -Wall -Wstrict-prototypes -Wno-trigraphs 
+ 
++ifeq ($(HAS_EEEPC_SPECIAL_SETTING),y)
++WFLAGS += -DEEEPC_SPECIAL_SETTING
++endif
++
+ ifeq ($(RT28xx_MODE),STA)
+ WFLAGS += -DCONFIG_STA_SUPPORT -DDBG 
+ 
+-- 
+1.5.6.3
+
diff --git a/rt2860-1.7.0.0/debian/patches/series b/rt2860-1.7.0.0/debian/patches/series
index 61c2196..3b0762d 100644
--- a/rt2860-1.7.0.0/debian/patches/series
+++ b/rt2860-1.7.0.0/debian/patches/series
@@ -1,3 +1,3 @@
 01_remove-tft-lines-from-makefile.patch
 02_Fix-compilation-for-2.6.26.patch
-
+03_wpa-fix.patch

-- 
rt2860 source for the ralink wireless chip in the eeepc 901.



More information about the Debian-eeepc-devel mailing list