summaryrefslogtreecommitdiff
path: root/cesar/cp/station/src/station_actions.c
diff options
context:
space:
mode:
authorchertier2008-04-10 12:26:03 +0000
committerchertier2008-04-10 12:26:03 +0000
commit6e3928f22ce9d5338c0fcea8134a1fbf2b801f62 (patch)
tree885d275afa2e352d6f9a4e348bdcc031bcd52291 /cesar/cp/station/src/station_actions.c
parent63a7b6030a7dbf8e007ccdf33a616d060086e7c3 (diff)
corrected validity test of the SL value accordingly with the HP_AV spec
(see Note in section 4.4.3.1 of the HP_AV spec) git-svn-id: svn+ssh://pessac/svn/cesar/trunk@1796 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/station/src/station_actions.c')
-rw-r--r--cesar/cp/station/src/station_actions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/cp/station/src/station_actions.c b/cesar/cp/station/src/station_actions.c
index ba0ec9a593..b3106fbb7c 100644
--- a/cesar/cp/station/src/station_actions.c
+++ b/cesar/cp/station/src/station_actions.c
@@ -948,7 +948,8 @@ VS_VOID process_drv_set_sl (VS_VOIDPTR msg)
cnf_result = E_DRVMME_RESULT_SUCCESS;
cnf_errcode = 0 /*E_DRVMME_ERRCODE_BAD_PARAMETER*/;
- if (msg_ctx->buffer[mme_header_len] <= 2)
+ /* Test validity of the 2-bit Security-Level value ? (SL = 0b00 or 0b01, see 4.4.3.1 in HP_AV spec) */
+ if (msg_ctx->buffer[mme_header_len] < 2)
cp_sta_global.cp_sta_flash_params.sl = msg_ctx->buffer[mme_header_len];
else
{