|
@@ -1449,14 +1449,14 @@ static int ath6kl_cfg80211_get_txpower(struct wiphy *wiphy,
|
|
return -EIO;
|
|
return -EIO;
|
|
|
|
|
|
if (test_bit(CONNECTED, &vif->flags)) {
|
|
if (test_bit(CONNECTED, &vif->flags)) {
|
|
- ar->tx_pwr = 0;
|
|
|
|
|
|
+ ar->tx_pwr = 255;
|
|
|
|
|
|
if (ath6kl_wmi_get_tx_pwr_cmd(ar->wmi, vif->fw_vif_idx) != 0) {
|
|
if (ath6kl_wmi_get_tx_pwr_cmd(ar->wmi, vif->fw_vif_idx) != 0) {
|
|
ath6kl_err("ath6kl_wmi_get_tx_pwr_cmd failed\n");
|
|
ath6kl_err("ath6kl_wmi_get_tx_pwr_cmd failed\n");
|
|
return -EIO;
|
|
return -EIO;
|
|
}
|
|
}
|
|
|
|
|
|
- wait_event_interruptible_timeout(ar->event_wq, ar->tx_pwr != 0,
|
|
|
|
|
|
+ wait_event_interruptible_timeout(ar->event_wq, ar->tx_pwr != 255,
|
|
5 * HZ);
|
|
5 * HZ);
|
|
|
|
|
|
if (signal_pending(current)) {
|
|
if (signal_pending(current)) {
|