From: Antonio Quartulli Date: Fri, 13 Jan 2012 12:53:18 +0000 (+0100) Subject: mac80211: remove useless DA checking in ieee80211_rx_mgmt_probe_resp() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1249700f563b5dc541afa7e54a2d93fdffc1fb6;p=openwrt%2Fstaging%2Fblogic.git mac80211: remove useless DA checking in ieee80211_rx_mgmt_probe_resp() 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 Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 4345e9449d7c..b253d0adf0ad 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -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;