]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
atheros: Reset frame filter on deinit
authorShan Palanisamy <shanp@qca.qualcomm.com>
Thu, 16 Feb 2012 14:25:07 +0000 (16:25 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Feb 2012 14:25:07 +0000 (16:25 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

src/drivers/driver_atheros.c

index b17d1a6ac7d577a753a8f5f48516e2e8f0884523..78e7beb245265d799ca8c207d3a90931ccd53b22 100644 (file)
@@ -784,6 +784,14 @@ static int atheros_receive_probe_req(struct atheros_driver_data *drv)
        return ret;
 }
 
+static int atheros_reset_appfilter(struct atheros_driver_data *drv)
+{
+       struct ieee80211req_set_filter filt;
+       filt.app_filterype = 0;
+       return set80211priv(drv, IEEE80211_IOCTL_FILTERFRAME, &filt,
+                           sizeof(struct ieee80211req_set_filter));
+}
+
 #ifdef CONFIG_WPS
 static int
 atheros_set_wps_ie(void *priv, const u8 *ie, size_t len, u32 frametype)
@@ -1302,6 +1310,7 @@ atheros_deinit(void *priv)
 {
        struct atheros_driver_data *drv = priv;
 
+       atheros_reset_appfilter(drv);
        netlink_deinit(drv->netlink);
        (void) linux_set_iface_flags(drv->ioctl_sock, drv->iface, 0);
        if (drv->ioctl_sock >= 0)