FIX: Cannot connect to an open network wifi ap.

Signed-off-by: Bao Zhen <bz@infthink.com>