* This event indicates that the station responded to the poll
* initiated with @poll_client.
*/
- EVENT_DRIVER_CLIENT_POLL_OK
+ EVENT_DRIVER_CLIENT_POLL_OK,
+
+ /**
+ * EVENT_BROADCOM_CUSTOM - Broadcom custom event
+ *
+ * This event is sent when failing to associate while running the
+ * initial scan.
+ */
+ EVENT_BROADCOM_CUSTOM
};
}
wpa_supplicant_event(ctx, EVENT_STKSTART, &data);
#endif /* CONFIG_PEERKEY */
+ } else if (os_strncmp(custom, "Conn NoNetworks", 15) == 0) {
+ wpa_printf(MSG_DEBUG, "WEXT: Broadcom custom event");
+ wpa_supplicant_event(ctx, EVENT_BROADCOM_CUSTOM, &data);
}
}
wpas_wps_start_pbc(wpa_s, NULL, 0);
#endif /* CONFIG_WPS */
break;
+ case EVENT_BROADCOM_CUSTOM:
+ wpa_printf(MSG_DEBUG, "Broadcom event in state %d",
+ wpa_s->wpa_state);
+ if (wpa_s->wpa_state == WPA_SCANNING) {
+ /* Force scanning */
+ wpa_s->scan_req = 1;
+ wpa_supplicant_req_scan(wpa_s, 0, 0);
+ }
+ break;
default:
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
break;