diff options
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index fd83ef760a37..7e09b30dd393 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -1743,10 +1743,6 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata, | |||
1743 | if (!bssid) | 1743 | if (!bssid) |
1744 | return 0; | 1744 | return 0; |
1745 | if (ieee80211_is_beacon(hdr->frame_control)) { | 1745 | if (ieee80211_is_beacon(hdr->frame_control)) { |
1746 | if (!rx->sta) | ||
1747 | rx->sta = ieee80211_ibss_add_sta(sdata, | ||
1748 | rx->skb, bssid, hdr->addr2, | ||
1749 | BIT(rx->status->rate_idx)); | ||
1750 | return 1; | 1746 | return 1; |
1751 | } | 1747 | } |
1752 | else if (!ieee80211_bssid_match(bssid, sdata->u.sta.bssid)) { | 1748 | else if (!ieee80211_bssid_match(bssid, sdata->u.sta.bssid)) { |