static int madwifi_set_ap_wps_ie(void *priv, const struct wpabuf *beacon, const struct wpabuf *proberesp) { if (madwifi_set_wps_ie(priv, beacon ? wpabuf_head(beacon) : NULL, beacon ? wpabuf_len(beacon) : 0, IEEE80211_APPIE_FRAME_BEACON)) return -1; return madwifi_set_wps_ie(priv, proberesp ? wpabuf_head(proberesp) : NULL, proberesp ? wpabuf_len(proberesp): 0, IEEE80211_APPIE_FRAME_PROBE_RESP); }
static int madwifi_set_wps_probe_resp_ie(const char *ifname, void *priv, const u8 *ie, size_t len) { return madwifi_set_wps_ie(priv, ie, len, IEEE80211_APPIE_FRAME_PROBE_RESP); }
static int madwifi_set_wps_beacon_ie(const char *ifname, void *priv, const u8 *ie, size_t len) { return madwifi_set_wps_ie(priv, ie, len, IEEE80211_APPIE_FRAME_BEACON); }