]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mac80211: remove useless DA checking in ieee80211_rx_mgmt_probe_resp()
authorAntonio Quartulli <ordex@autistici.org>
Fri, 13 Jan 2012 12:53:18 +0000 (13:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:21:12 +0000 (14:21 -0500)
Actually the DA field has already been checked along the rx path (in
prepare_for_handlers()) and this check is therefore useless at this point.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c

index 4345e9449d7c0de5091ddb5cc5b99b4fe601a554..b253d0adf0ad7c69fb34c5b5865950e1468ea4b3 100644 (file)
@@ -853,9 +853,6 @@ static void ieee80211_rx_mgmt_probe_resp(struct ieee80211_sub_if_data *sdata,
        size_t baselen;
        struct ieee802_11_elems elems;
 
-       if (memcmp(mgmt->da, sdata->vif.addr, ETH_ALEN))
-               return; /* ignore ProbeResp to foreign address */
-
        baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt;
        if (baselen > len)
                return;