fix wifi and add p2p support