From: Malcolm Priestley Date: Sat, 5 Jul 2014 18:24:23 +0000 (+0100) Subject: staging: vt6656: vnt_tx_packet don't change power when off channel. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5091d963b877a48705128eba961524bc1bab687e;p=deliverable%2Flinux.git staging: vt6656: vnt_tx_packet don't change power when off channel. The changing channel is so fast when off channel that changing power is pointless. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index e896dfe5d3fc..95b6cf307af6 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -900,7 +900,8 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb) rate = ieee80211_get_tx_rate(priv->hw, info); current_rate = rate->hw_value; - if (priv->wCurrentRate != current_rate) { + if (priv->wCurrentRate != current_rate && + !(priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) { priv->wCurrentRate = current_rate; bScheduleCommand(priv, WLAN_CMD_SETPOWER, NULL); }