prima: Fix possible OOB access in limProcessDisassocFrame

Propagation from cld3.0 to cld2.0.
Further adapted from cld2.0 to prima.

Reason code is extracted from frame data without
validating frame len which could result in out
of bound access. Fix is to validate frame len
before extracting reason code from frame data.

Issue: SEC-1951
Bug: 78530292
Change-Id: I00795a806abcae903dd0daa019aeab990aedc3a7
CRs-Fixed: 2333989
Signed-off-by: Roger Wang <wangroger@google.com>
(adapted from commit b9e963d973d0a507ed88ac8d3199ac7b89e851fb)
1 file changed