|
@@ -372,12 +372,29 @@ extern int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf,
|
|
|
size_t buf_len);
|
|
|
#endif /* ANDROID */
|
|
|
#ifdef ANDROID_P2P
|
|
|
+#ifdef ANDROID_P2P_STUB
|
|
|
+int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration) {
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+int wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len) {
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+int wpa_driver_set_p2p_ps(void *priv, int legacy_ps, int opp_ps, int ctwindow) {
|
|
|
+ return -1;
|
|
|
+}
|
|
|
+int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon,
|
|
|
+ const struct wpabuf *proberesp,
|
|
|
+ const struct wpabuf *assocresp) {
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#else /* ANDROID_P2P_STUB */
|
|
|
int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration);
|
|
|
int wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len);
|
|
|
int wpa_driver_set_p2p_ps(void *priv, int legacy_ps, int opp_ps, int ctwindow);
|
|
|
int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon,
|
|
|
const struct wpabuf *proberesp,
|
|
|
const struct wpabuf *assocresp);
|
|
|
+#endif /* ANDROID_P2P_STUB */
|
|
|
#endif /* ANDROID_P2P */
|
|
|
|
|
|
static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx);
|