Pavel Roskin | 7 May 21:35 2009

revision 4018 committed

Project     : madwifi
Revision    : 4018
Author      : proski (Pavel Roskin)
Date        : 2009-05-07 21:35:22 +0200 (Thu, 07 May 2009)

Log Message :
Fix a warning in ar5416GetGainBoundariesAndPdadcs

If numXpdGains is 0, minPwrT4[0] would not be initialized.  Make sure
numXpdGains is more than 0.

Affected Files:
* madwifi/trunk/ath_hal/ar5416/ar5416_reset.c         updated             

Modified: madwifi/trunk/ath_hal/ar5416/ar5416_reset.c
===================================================================
--- madwifi/trunk/ath_hal/ar5416/ar5416_reset.c	2009-04-28 06:12:40 UTC (rev 4017)
+++ madwifi/trunk/ath_hal/ar5416/ar5416_reset.c	2009-05-07 19:35:22 UTC (rev 4018)
 <at>  <at>  -2596,6 +2596,11  <at>  <at> 
     int16_t  minDelta = 0;
     CHAN_CENTERS centers;

+    if (numXpdGains > 0) {
+	HALASSERT(0);
+	return;
+    }
+
     ar5416GetChannelCenters(ah, chan, &centers);

     /* Trim numPiers for the number of populated channel Piers */
(Continue reading)

Pavel Roskin | 7 May 22:40 2009

revision 4019 committed

Project     : madwifi
Revision    : 4019
Author      : proski (Pavel Roskin)
Date        : 2009-05-07 22:40:54 +0200 (Thu, 07 May 2009)

Log Message :
Fix compilation with HAL_DEBUG=1

Provide forward declaration of struct ath_hal in ah_osdep.h.  Implement
OS_GETUPTIME (the implementation is quite primitive, as it's only used
once for some obscure condition in 5212 chips).  Implement HALDEBUG()
and ath_hal_ether_sprintf().

Affected Files:
* madwifi/trunk/ath_hal/ah_os.c                       updated             
* madwifi/trunk/ath_hal/ah_osdep.h                    updated             

Modified: madwifi/trunk/ath_hal/ah_os.c
===================================================================
--- madwifi/trunk/ath_hal/ah_os.c	2009-05-07 19:35:22 UTC (rev 4018)
+++ madwifi/trunk/ath_hal/ah_os.c	2009-05-07 20:40:54 UTC (rev 4019)
 <at>  <at>  -264,6 +264,27  <at>  <at> 
 }
 EXPORT_SYMBOL(ath_hal_printf);

+#ifdef AH_DEBUG
+extern const char *ath_hal_ether_sprintf(const uint8_t *mac)
+{
+	static char buf[18];
+	sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2],
(Continue reading)

Pavel Roskin | 7 May 23:11 2009

revision 4020 committed

Project     : madwifi
Revision    : 4020
Author      : proski (Pavel Roskin)
Date        : 2009-05-07 23:11:03 +0200 (Thu, 07 May 2009)

Log Message :
Remove all references to _trace_regop() and MMIOTRACE

It's obsolete and useless now, when the HAL sources are open.  It also
misuses ath_hal_debug in a way incompatible with the use of
ath_hal_debug inside the HAL.

The mmiotrace facility is available in the kernel and doesn't require
any changes to the sources.

Affected Files:
* madwifi/trunk/Makefile.inc                          updated             
* madwifi/trunk/ath_hal/ah_os.c                       updated             
* madwifi/trunk/ath_hal/ah_os.h                       updated             

Modified: madwifi/trunk/Makefile.inc
===================================================================
--- madwifi/trunk/Makefile.inc	2009-05-07 20:40:54 UTC (rev 4019)
+++ madwifi/trunk/Makefile.inc	2009-05-07 21:11:03 UTC (rev 4020)
 <at>  <at>  -154,14 +154,6  <at>  <at> 
 export ATH_DEBUG=1
 endif

-ifndef MMIOTRACE
-export MMIOTRACE=0
(Continue reading)

Pavel Roskin | 12 May 18:44 2009

revision 4021 committed

Project     : madwifi
Revision    : 4021
Author      : proski (Pavel Roskin)
Date        : 2009-05-12 18:44:36 +0200 (Tue, 12 May 2009)

Log Message :
Reduce stack usage in ar5112SetPowerTable() - eliminate tmpPowerTable

Affected Files:
* madwifi/trunk/ath_hal/ar5212/ar5112.c               updated             

Modified: madwifi/trunk/ath_hal/ar5212/ar5112.c
===================================================================
--- madwifi/trunk/ath_hal/ar5212/ar5112.c	2009-05-07 21:11:03 UTC (rev 4020)
+++ madwifi/trunk/ath_hal/ar5212/ar5112.c	2009-05-12 16:44:36 UTC (rev 4021)
 <at>  <at>  -363,7 +363,6  <at>  <at> 
 	uint16_t    numPcd;
 	int16_t     powTableLXPD[2][64];
 	int16_t     powTableHXPD[2][64];
-	int16_t     tmpPowerTable[64];
 	uint16_t    xgainList[2];
 	uint16_t    xpdMask;

 <at>  <at>  -430,11 +429,9  <at>  <at> 
 			OS_MEMCPY(&powers[0], &pRawCh->pDataPerXPD[jj].pwr_t4[0],
 				numPcd * sizeof(int16_t));
 			if (!getFullPwrTable(numPcd, &pcdacs[0], &powers[0],
-				pRawCh->maxPower_t4, &tmpPowerTable[0])) {
+				pRawCh->maxPower_t4, powTableLXPD[kk])) {
 				return AH_FALSE;
(Continue reading)

Pavel Roskin | 12 May 22:05 2009

revision 4022 committed

Project     : madwifi
Revision    : 4022
Author      : proski (Pavel Roskin)
Date        : 2009-05-12 22:05:46 +0200 (Tue, 12 May 2009)

Log Message :
Fix all cases of stack usage exceeding 1024 bytes

Affected Files:
* madwifi/trunk/net80211/ieee80211_linux.c            updated             
* madwifi/trunk/net80211/ieee80211_skb.c              updated             
* madwifi/trunk/net80211/ieee80211_wireless.c         updated             

Modified: madwifi/trunk/net80211/ieee80211_linux.c
===================================================================
--- madwifi/trunk/net80211/ieee80211_linux.c	2009-05-12 16:44:36 UTC (rev 4021)
+++ madwifi/trunk/net80211/ieee80211_linux.c	2009-05-12 20:05:46 UTC (rev 4022)
 <at>  <at>  -288,7 +288,7  <at>  <at> 
 	static const char *tag = "STA-TRAFFIC-STAT";
 	struct net_device *dev = vap->iv_dev;
 	union iwreq_data wreq;
-	char buf[1024];
+	char buf[256];

 	snprintf(buf, sizeof(buf), "%s\nmac=" MAC_FMT "\nrx_packets=%u\nrx_bytes=%llu\n"
 			"tx_packets=%u\ntx_bytes=%llu\n", tag,

Modified: madwifi/trunk/net80211/ieee80211_skb.c
===================================================================
--- madwifi/trunk/net80211/ieee80211_skb.c	2009-05-12 16:44:36 UTC (rev 4021)
(Continue reading)

Pavel Roskin | 19 May 03:18 2009

revision 4023 committed

Project     : madwifi
Revision    : 4023
Author      : proski (Pavel Roskin)
Date        : 2009-05-19 03:18:16 +0200 (Tue, 19 May 2009)

Log Message :
For AHB support, Linux 2.6.19 or newer is required

Affected Files:
* madwifi/trunk/INSTALL                               updated             

Modified: madwifi/trunk/INSTALL
===================================================================
--- madwifi/trunk/INSTALL	2009-05-12 20:05:46 UTC (rev 4022)
+++ madwifi/trunk/INSTALL	2009-05-19 01:18:16 UTC (rev 4023)
 <at>  <at>  -32,7 +32,7  <at>  <at> 
 without problems.  Due to quick pace of Linux development, there is no
 way compatibility with the future 2.6 kernels can be ensured.  However,
 the latest 2.6 kernel at the time of the release should be expected to
-work.
+work.  For AHB support, Linux 2.6.19 or newer is required.

 Automatic module loading support (CONFIG_KMOD) is highly recommended;
 otherwise, you'll need to load all required modules manually.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
(Continue reading)

Pavel Roskin | 24 May 03:09 2009

revision 4025 committed

Project     : madwifi
Revision    : 4025
Author      : proski (Pavel Roskin)
Date        : 2009-05-24 03:09:44 +0200 (Sun, 24 May 2009)

Log Message :
Fix compilation for sparc64

On some 64-bit architectures u_int64_t is not unsigned long long.

Affected Files:
* madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/minstrel.c  updated             
* madwifi/branches/madwifi-0.9.4/net80211/ieee80211_linux.c  updated             

Modified: madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/minstrel.c
===================================================================
--- madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/minstrel.c	2009-05-24 01:09:25 UTC (rev 4024)
+++ madwifi/branches/madwifi-0.9.4/ath_rate/minstrel/minstrel.c	2009-05-24 01:09:44 UTC (rev 4025)
 <at>  <at>  -978,8 +978,8  <at>  <at> 
 				     this_prob / 10, this_prob % 10,
 				     odst->rs_lastratesuccess[x],
 				     odst->rs_lastrateattempts[x],
-				     odst->rs_succ_hist[x],
-				     odst->rs_att_hist[x]);
+				     (unsigned long long)odst->rs_succ_hist[x],
+				     (unsigned long long)odst->rs_att_hist[x]);
 		}
 		p += sprintf(p, "\n");

Modified: madwifi/branches/madwifi-0.9.4/net80211/ieee80211_linux.c
(Continue reading)

Pavel Roskin | 24 May 03:09 2009

revision 4024 committed

Project     : madwifi
Revision    : 4024
Author      : proski (Pavel Roskin)
Date        : 2009-05-24 03:09:25 +0200 (Sun, 24 May 2009)

Log Message :
Fix compilation for mips64

On some 64-bit architectures u_int64_t is not unsigned long long.

Affected Files:
* madwifi/trunk/ath/if_ath.c                          updated             
* madwifi/trunk/ath/if_ath_radar.c                    updated             
* madwifi/trunk/net80211/ieee80211_linux.c            updated             
* madwifi/trunk/net80211/ieee80211_node.c             updated             

Modified: madwifi/trunk/ath/if_ath.c
===================================================================
--- madwifi/trunk/ath/if_ath.c	2009-05-19 01:18:16 UTC (rev 4023)
+++ madwifi/trunk/ath/if_ath.c	2009-05-24 01:09:25 UTC (rev 4024)
 <at>  <at>  -1681,7 +1681,7  <at>  <at> 
 						"TXQ%d: restoring"
 						" TXDP:%08llx\n",
  						txq->axq_qnum,
- 						(u_int64_t)bf->bf_daddr);
+ 						(unsigned long long)bf->bf_daddr);
 					ath_hw_puttxbuf(sc, txq->axq_qnum,
 							bf->bf_daddr,
 							__func__);
 <at>  <at>  -1923,7 +1923,7  <at>  <at> 
(Continue reading)

Pavel Roskin | 24 May 03:21 2009

revision 4026 committed

Project     : madwifi
Revision    : 4026
Author      : proski (Pavel Roskin)
Date        : 2009-05-24 03:21:48 +0200 (Sun, 24 May 2009)

Log Message :
Fix compilation on sparc64 - tv_usec may be int, not long

Affected Files:
* madwifi/trunk/ath/if_ath.c                          updated             

Modified: madwifi/trunk/ath/if_ath.c
===================================================================
--- madwifi/trunk/ath/if_ath.c	2009-05-24 01:09:44 UTC (rev 4025)
+++ madwifi/trunk/ath/if_ath.c	2009-05-24 01:21:48 UTC (rev 4026)
 <at>  <at>  -8747,7 +8747,7  <at>  <at> 
 		ath_hal_mhz2ieee(ah, hchan.channel, hchan.channelFlags),
 		hchan.channel,
 		tv.tv_sec,
-		tv.tv_usec
+		(long)tv.tv_usec
 		);

 	/* check if it is turbo mode switch */
 <at>  <at>  -8833,7 +8833,7  <at>  <at> 
 					"channel %u -- Time: %ld.%06ld\n", 
 					ieee80211_mhz2ieee(sc->sc_curchan.channel, 
 						sc->sc_curchan.channelFlags), 
-					tv.tv_sec, tv.tv_usec);
+					tv.tv_sec, (long)tv.tv_usec);
(Continue reading)

Pavel Roskin | 24 May 07:00 2009

revision 4027 committed

Project     : madwifi
Revision    : 4027
Author      : proski (Pavel Roskin)
Date        : 2009-05-24 07:00:20 +0200 (Sun, 24 May 2009)

Log Message :
Rename u32 to up32, u32 is a type in Linux

This fixes compilation on sh64.

Affected Files:
* madwifi/trunk/ath_hal/ar5210/ar5210_misc.c          updated             
* madwifi/trunk/ath_hal/ar5211/ar5211_misc.c          updated             
* madwifi/trunk/ath_hal/ar5212/ar5212_misc.c          updated             

Modified: madwifi/trunk/ath_hal/ar5210/ar5210_misc.c
===================================================================
--- madwifi/trunk/ath_hal/ar5210/ar5210_misc.c	2009-05-24 01:21:48 UTC (rev 4026)
+++ madwifi/trunk/ath_hal/ar5210/ar5210_misc.c	2009-05-24 05:00:20 UTC (rev 4027)
 <at>  <at>  -330,11 +330,11  <at>  <at> 
 uint64_t
 ar5210GetTsf64(struct ath_hal *ah)
 {
-	uint32_t low1, low2, u32;
+	uint32_t low1, low2, up32;

 	/* sync multi-word read */
 	low1 = OS_REG_READ(ah, AR_TSF_L32);
-	u32 = OS_REG_READ(ah, AR_TSF_U32);
+	up32 = OS_REG_READ(ah, AR_TSF_U32);
(Continue reading)


Gmane