]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add hostapd_drv_send_action()
authorJay Katabathuni <jkatabat@qca.qualcomm.com>
Sun, 26 Feb 2012 18:52:31 +0000 (20:52 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Feb 2012 20:52:37 +0000 (22:52 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/ap/ap_drv_ops.c
src/ap/ap_drv_ops.h

index d07cc6bc0e98694a824f0d6de644affc7b40feee..859b529b4516658ded866d8320168318d05e42bc 100644 (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,
                                          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);
+}
index 8038fa26c10749c77d44fc83eed2f2b0160b9780..169c91b79a68aef995ab64b10056ce96457037be 100644 (file)
@@ -86,6 +86,9 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd,
                           const u8 *addr, int reason);
 int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
                             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,
                         u16 auth_alg);
 int hostapd_sta_auth(struct hostapd_data *hapd, const u8 *addr,