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

Commit 0a34332f authored by Juuso Oikarinen's avatar Juuso Oikarinen Committed by John W. Linville
Browse files

wl1271: Disable host TX rate control



Disable host TX rate control. The wl1271 firmware is already managing rate
control, so this eliminate unnecessary host processing.

Signed-off-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: default avatarTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 04e36fc5
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1973,7 +1973,8 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
	wl->hw->flags = IEEE80211_HW_SIGNAL_DBM |
	wl->hw->flags = IEEE80211_HW_SIGNAL_DBM |
		IEEE80211_HW_NOISE_DBM |
		IEEE80211_HW_NOISE_DBM |
		IEEE80211_HW_BEACON_FILTER |
		IEEE80211_HW_BEACON_FILTER |
		IEEE80211_HW_SUPPORTS_PS;
		IEEE80211_HW_SUPPORTS_PS |
		IEEE80211_HW_HAS_RATE_CONTROL;


	wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
	wl->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
		BIT(NL80211_IFTYPE_ADHOC);
		BIT(NL80211_IFTYPE_ADHOC);
+2 −0
Original line number Original line Diff line number Diff line
@@ -350,6 +350,8 @@ static void wl1271_tx_complete_packet(struct wl1271 *wl,
		     result->id, skb, result->ack_failures,
		     result->id, skb, result->ack_failures,
		     result->rate_class_index, result->status);
		     result->rate_class_index, result->status);


	/* FIXME: do we need to tell the stack about the used rate? */

	/* return the packet to the stack */
	/* return the packet to the stack */
	ieee80211_tx_status(wl->hw, skb);
	ieee80211_tx_status(wl->hw, skb);
	wl->tx_frames[result->id] = NULL;
	wl->tx_frames[result->id] = NULL;