[PATCH 05/31 v2] build fix: fix array size
Oleksij Rempel
linux at rempel-privat.de
Fri Mar 29 12:35:07 EDT 2013
v2 - use #define..
Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
---
target_firmware/wlan/ah.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/target_firmware/wlan/ah.h b/target_firmware/wlan/ah.h
index c86d115..d0cd40e 100755
--- a/target_firmware/wlan/ah.h
+++ b/target_firmware/wlan/ah.h
@@ -9,6 +9,7 @@
#endif
#define AR5416_DEVID_PCIE 0x0024 /* AR5416 PCI-E (XB) (Owl) */
+#define HAL_RATE_TABLE_SIZE 33
typedef enum {
HAL_OK = 0, /* No error */
@@ -240,7 +241,7 @@ typedef struct {
typedef struct {
a_int32_t rateCount;
- a_uint8_t rateCodeToIndex[32];
+ a_uint8_t rateCodeToIndex[HAL_RATE_TABLE_SIZE];
struct {
a_uint8_t valid;
a_uint8_t phy;
@@ -254,7 +255,7 @@ typedef struct {
a_uint8_t controlRate;
a_uint16_t lpAckDuration;
a_uint16_t spAckDuration;
- } info[32];
+ } info[HAL_RATE_TABLE_SIZE];
} HAL_RATE_TABLE;
typedef struct {
@@ -271,7 +272,7 @@ typedef struct {
typedef struct {
a_int32_t rateCount;
- a_uint8_t rateCodeToIndex[32];
+ a_uint8_t rateCodeToIndex[HAL_RATE_TABLE_SIZE];
struct {
a_uint8_t valid;
a_uint8_t phy;
@@ -282,7 +283,7 @@ typedef struct {
a_uint8_t controlRate;
a_uint16_t lpAckDuration;
a_uint16_t spAckDuration;
- } info[32];
+ } info[HAL_RATE_TABLE_SIZE];
} HAL_RATE_TABLE;
#define HAL_RATESERIES_RTS_CTS 0x0001 /* use rts/cts w/this series */
--
1.8.1.2
More information about the Ath9k_htc_fw
mailing list