diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-01-13 07:53:18 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-24 14:21:12 -0500 |
commit | f1249700f563b5dc541afa7e54a2d93fdffc1fb6 (patch) | |
tree | d647942edbd28efcb248c77416e78ac3b81486f8 /net/mac80211/ibss.c | |
parent | f540f9f34b35d3c8a1d4b8d47ad5f00da951bfe7 (diff) |
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 <ordex@autistici.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r-- | net/mac80211/ibss.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 4345e9449d7..b253d0adf0a 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, | |||
853 | size_t baselen; | 853 | size_t baselen; |
854 | struct ieee802_11_elems elems; | 854 | struct ieee802_11_elems elems; |
855 | 855 | ||
856 | if (memcmp(mgmt->da, sdata->vif.addr, ETH_ALEN)) | ||
857 | return; /* ignore ProbeResp to foreign address */ | ||
858 | |||
859 | baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; | 856 | baselen = (u8 *) mgmt->u.probe_resp.variable - (u8 *) mgmt; |
860 | if (baselen > len) | 857 | if (baselen > len) |
861 | return; | 858 | return; |