Detect if the adapter can be an AP and AP+STA

Fix #9