tests: Use cmd_execute() function in ap_ht40_scan_not_affected