ASACORE-1209: Arduino Due FreeRTOS does not invoke wifi callback

 - Parsed wifi packet to get security/cipher type
 - WiFi callback is not called
 - Scan list is now a dynamic allocation to save on space.
 - Fixed improper use of close() for WSL
 - Addressed several memory leaks in WSL driver

Change-Id: I83e9752b6ce2f966b7b75e4aea923d8a8522c8d7
Signed-off-by: James Prestwood <jprestwo@qce.qualcomm.com>