summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/maximus/src
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/hal/phy/maximus/src
parent722f5549a5b8d3c23ac3f57a34b9e8f4f29fd7a0 (diff)
cesar/{mac,hal}: store the agc gain on mpdu reception, refs #3485
Diffstat (limited to 'cesar/hal/phy/maximus/src')
-rw-r--r--cesar/hal/phy/maximus/src/maximus_phy_ctrl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c b/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
index a1994857bc..4cf3af9dcd 100644
--- a/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
+++ b/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
@@ -2233,6 +2233,25 @@ phy_seed (void)
return my_station.seed;
}
+u32
+phy_rx_agc_gain (phy_t *ctx)
+{
+ u32 agc_gain = 0;
+
+ dbg_assert_ptr(ctx);
+ if (NULL == ctx)
+ {
+ errno = EINVAL;
+ station_log(&my_station, STATION_LOG_ERROR, STATION_LOGTYPE_PHY,
+ "%s: errno = %d", __FUNCTION__, errno);
+ }
+ else
+ {
+ agc_gain = ctx->control.rx_param.agc_gain;
+ }
+
+ return agc_gain;
+}
u32
phy_sysdate (void)