summaryrefslogtreecommitdiff
path: root/cesar/cp/station/src/station_actions.c
diff options
context:
space:
mode:
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
{