summaryrefslogtreecommitdiff
path: root/cesar/mac/common
diff options
context:
space:
mode:
authorschodet2009-11-26 10:35:20 +0000
committerschodet2009-11-26 10:35:20 +0000
commit23332b634f59b675a5b8b670514b976dfa0cf4b0 (patch)
treeb06f66e6a59d2a4657d796408a14840ed95b8daf /cesar/mac/common
parenta06daec5c3f599738ab1e6e0679b95f42509bd57 (diff)
cesar/mac/common: avoid a call to mac_store_sta_add if not needed
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6476 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/mac/common')
-rw-r--r--cesar/mac/common/src/store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cesar/mac/common/src/store.c b/cesar/mac/common/src/store.c
index b1c6961090..796b0a21ae 100644
--- a/cesar/mac/common/src/store.c
+++ b/cesar/mac/common/src/store.c
@@ -143,7 +143,7 @@ mac_store_mfs_slot_get (mac_store_t *ctx, bool tx, bool bcast, bool mme,
else
{
/* Here, we need a STA. */
- if (add)
+ if (add && !ctx->sta[tei])
mac_store_sta_add_ (ctx, tei __fl);
mac_store_sta_t *sta = ctx->sta[tei];
if (!sta)