Improve reattach scan OOM failure handling
authorJouni Malinen <j@w1.fi>
Sat, 28 May 2016 19:16:47 +0000 (22:16 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 28 May 2016 19:47:31 +0000 (22:47 +0300)
commit8e909fa92e59c9a4bc0472603decb8a334f7808a
tree7ca8b0581602bf92741706bb6fed44bcda25311e
parentfccc4bd518a51b5112f71ad992eb21e9a359067d
Improve reattach scan OOM failure handling

Instead of reporting the memory allocation failure and stopping, run the
scan even if the frequency list cannot be created due to allocation
failure. This allows the wpa_s->reattach flag to be cleared and the scan
to be completed even if it takes a bit longer time due to all channels
getting scanned.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/scan.c