summaryrefslogtreecommitdiff
path: root/cesar/mac/pbproc/src/fsm_rx_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/pbproc/src/fsm_rx_data.c')
-rw-r--r--cesar/mac/pbproc/src/fsm_rx_data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cesar/mac/pbproc/src/fsm_rx_data.c b/cesar/mac/pbproc/src/fsm_rx_data.c
index 5d380d42d0..65a4491cdb 100644
--- a/cesar/mac/pbproc/src/fsm_rx_data.c
+++ b/cesar/mac/pbproc/src/fsm_rx_data.c
@@ -112,6 +112,9 @@ pbproc_frda__handle (pbproc_t *ctx, u32 rx_date)
PBPROC_FC_SACKI_UNIFORM_ALL_ERROR);
return;
}
+ sta_t *sta = NULL;
+ if (!(rx_params->bcast || unassociated))
+ sta = mac_store_sta_get_noref (ctx->store, rx_params->tei);
/* Get tonemap. */
uint tmi = rx_params->tmi_av;
tonemap_t *tm;
@@ -131,7 +134,6 @@ pbproc_frda__handle (pbproc_t *ctx, u32 rx_date)
{
dbg_claim (wack);
dbg_claim (tmi < TONEMAP_INDEX_NB);
- sta_t *sta = mac_store_sta_get_noref (ctx->store, rx_params->tei);
if (sta)
{
tm = sta->rx_tonemaps->tm[tmi];
@@ -197,7 +199,6 @@ pbproc_frda__handle (pbproc_t *ctx, u32 rx_date)
{
if (unassociated)
break;
- sta_t *sta = mac_store_sta_get_noref (ctx->store, rx_params->tei);
mac_nek_t *(*nek)[2];
if (sta)
{