Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c60a5987 authored by Johannes Berg's avatar Johannes Berg Committed by android-build-merger
Browse files

mac80211: use driver-indicated transmitter STA only for data frames

am: b507df2e

Change-Id: I6bde405c3e252d9ac1eaa605f8997245bb2f482b
parents 855ee129 b507df2e
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -4092,14 +4092,16 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
		     ieee80211_is_beacon(hdr->frame_control)))
		ieee80211_scan_rx(local, skb);

	if (ieee80211_is_data(fc)) {
		struct sta_info *sta, *prev_sta;

		if (pubsta) {
			rx.sta = container_of(pubsta, struct sta_info, sta);
			rx.sdata = rx.sta->sdata;
			if (ieee80211_prepare_and_rx_handle(&rx, skb, true))
				return;
			goto out;
	} else if (ieee80211_is_data(fc)) {
		struct sta_info *sta, *prev_sta;
		}

		prev_sta = NULL;