AP: Get wiphy driver capabilities during start of sigma_dut

Wiphy capabilities were fetched from ap_reset_default. Some test scripts
are executed without invoking ap_reset_wireless. Hence, move the
functionality of get_wiphy from cmd_ap_reset_default() to start of
sigma_dut. In addition, add a NULL pointer check in nl80211_cmd() to
avoid crash if netlink initialization failed.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
4 files changed