Add hostapd_drv_send_action()

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jay Katabathuni 2012-02-26 20:52:31 +02:00 committed by Jouni Malinen
parent 6bcf537833
commit fb80e86e7d
2 changed files with 15 additions and 0 deletions

View file

@ -584,3 +584,15 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr, return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr,
reason); reason);
} }
int hostapd_drv_send_action(struct hostapd_data *hapd, unsigned int freq,
unsigned int wait, const u8 *dst, const u8 *data,
size_t len)
{
if (hapd->driver == NULL || hapd->driver->send_action == NULL)
return 0;
return hapd->driver->send_action(hapd->drv_priv, freq, wait, dst,
hapd->own_addr, hapd->own_addr, data,
len, 0);
}

View file

@ -86,6 +86,9 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd,
const u8 *addr, int reason); const u8 *addr, int reason);
int hostapd_drv_sta_disassoc(struct hostapd_data *hapd, int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
const u8 *addr, int reason); const u8 *addr, int reason);
int hostapd_drv_send_action(struct hostapd_data *hapd, unsigned int freq,
unsigned int wait, const u8 *dst, const u8 *data,
size_t len);
int hostapd_add_sta_node(struct hostapd_data *hapd, const u8 *addr, int hostapd_add_sta_node(struct hostapd_data *hapd, const u8 *addr,
u16 auth_alg); u16 auth_alg);
int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr, int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr,