bcmdhd: Add checks for stack buffer overflows

These two checks prevent exploitable buffer overflows in two scenarios.
1. Long WPS_ID_DEVICE_NAME in WPS info elements
2. Invalid SSID determined in certain scan results

Bug: 25662233
Change-Id: Ifb2887737aa6218079745f27d59b5f1364b3892e
1 file changed