summaryrefslogtreecommitdiff
path: root/cesar/mac/common
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-11-22 11:58:35 +0100
committerNélio Laranjeiro2012-12-17 17:01:01 +0100
commitaeb500070941d4db641da85b9baa301beed08059 (patch)
treee1e73e6d182996c04e2c5b35d2a1c053cd50aaae /cesar/mac/common
parent722f5549a5b8d3c23ac3f57a34b9e8f4f29fd7a0 (diff)
cesar/{mac,hal}: store the agc gain on mpdu reception, refs #3485
Diffstat (limited to 'cesar/mac/common')
-rw-r--r--cesar/mac/common/src/sta.c2
-rw-r--r--cesar/mac/common/sta.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/cesar/mac/common/src/sta.c b/cesar/mac/common/src/sta.c
index 817a45edfb..c8d1dc2921 100644
--- a/cesar/mac/common/src/sta.c
+++ b/cesar/mac/common/src/sta.c
@@ -34,6 +34,8 @@ sta_init (sta_t *sta, uint tei)
sta->tx_data_rate.data_rate = CL_DATA_RATE_REQ_INIT;
sta->rx_data_rate.data_rate = CL_DATA_RATE_REQ_INIT;
sta->intervals = NULL;
+ sta->agc_gain_valid = false;
+ sta->agc_gain = 0;
}
diff --git a/cesar/mac/common/sta.h b/cesar/mac/common/sta.h
index 37134f65c5..26f796d7d0 100644
--- a/cesar/mac/common/sta.h
+++ b/cesar/mac/common/sta.h
@@ -42,6 +42,10 @@ struct sta_t
cl_data_rate_t tx_data_rate;
/** Data rate for receive from this station to the local one. */
cl_data_rate_t rx_data_rate;
+ /** Attenuation from the AGC status. */
+ u32 agc_gain_valid;
+ /** Attenuation from the AGC. */
+ u32 agc_gain;
};
typedef struct sta_t sta_t;