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

Commit 2d892986 authored by Tomas Winkler's avatar Tomas Winkler Committed by John W. Linville
Browse files

mac80211: removing shadowed sband



This patch removes doubly defined sband variable

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b97e77e0
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -612,13 +612,10 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx)


	if ((info->flags & IEEE80211_TX_CTL_USE_RTS_CTS) ||
	if ((info->flags & IEEE80211_TX_CTL_USE_RTS_CTS) ||
	    (info->flags & IEEE80211_TX_CTL_USE_CTS_PROTECT)) {
	    (info->flags & IEEE80211_TX_CTL_USE_CTS_PROTECT)) {
		struct ieee80211_supported_band *sband;
		struct ieee80211_rate *rate;
		struct ieee80211_rate *rate;
		s8 baserate = -1;
		s8 baserate = -1;
		int idx;
		int idx;


		sband = tx->local->hw.wiphy->bands[tx->channel->band];

		/* Do not use multiple retry rates when using RTS/CTS */
		/* Do not use multiple retry rates when using RTS/CTS */
		info->control.alt_retry_rate_idx = -1;
		info->control.alt_retry_rate_idx = -1;