P2P: Add P2P configuration and callbacks in hostapd code
This commit is contained in:
parent
b22128efdc
commit
e44f8bf20a
6 changed files with 164 additions and 0 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "common/wpa_ctrl.h"
|
||||
#include "radius/radius.h"
|
||||
#include "radius/radius_client.h"
|
||||
#include "p2p/p2p.h"
|
||||
#include "wps/wps.h"
|
||||
#include "hostapd.h"
|
||||
#include "beacon.h"
|
||||
|
@ -1363,6 +1364,14 @@ static void handle_action(struct hostapd_data *hapd,
|
|||
return;
|
||||
}
|
||||
break;
|
||||
case WLAN_ACTION_VENDOR_SPECIFIC:
|
||||
if (hapd->vendor_action_cb) {
|
||||
if (hapd->vendor_action_cb(hapd->vendor_action_cb_ctx,
|
||||
(u8 *) mgmt, len,
|
||||
hapd->iface->freq) == 0)
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue