Initialize TDLS only for the STA or P2P_CLIENT mode.
This gerrit addresses the following to handle the issues
related to the TDLS initialization and exit.
In tdls_init(), proceed with the initialization/allocation only
for STA or P2P_CLIENT device_modes.Also check for the existance of
TDLS context before proceeding with the allocation.
Also invoke tdls_init when the device_mode changes to P2P_CLIENT
for the P2P Adapter.
Change-Id: Ia03fde0b0d5357a9c19b02f0a4cbc88f9be15165
CRs-fixed: 501059
3 files changed