Fix in AP Connection Routines

Change-Id: Ie8a3dce308f0d3e73f20738f9364f34d15ac5544
Signed-off-by: Andrey Shamis <lolnik@gmail.com>