Skip to content

Commit 7dd30d4

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
2 parents de8856d + 643c61e commit 7dd30d4

14 files changed

Lines changed: 58 additions & 44 deletions

File tree

‎MAINTAINERS‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,6 @@ ATHEROS ATH5K WIRELESS DRIVER
12511251
M: Jiri Slaby <jirislaby@gmail.com>
12521252
M: Nick Kossifidis <mickflemm@gmail.com>
12531253
M: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com>
1254-
M: Bob Copeland <me@bobcopeland.com>
12551254
L: linux-wireless@vger.kernel.org
12561255
L: ath5k-devel@lists.ath5k.org
12571256
W: http://wireless.kernel.org/en/users/Drivers/ath5k

‎drivers/net/wireless/ath/ath9k/calib.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
/* Common calibration code */
2222

23-
#define ATH9K_NF_TOO_HIGH -60
2423

2524
static int16_t ath9k_hw_get_nf_hist_mid(int16_t *nfCalBuffer)
2625
{
@@ -346,10 +345,10 @@ static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf)
346345
"NF calibrated [%s] [chain %d] is %d\n",
347346
(i >= 3 ? "ext" : "ctl"), i % 3, nf[i]);
348347

349-
if (nf[i] > ATH9K_NF_TOO_HIGH) {
348+
if (nf[i] > limit->max) {
350349
ath_dbg(common, CALIBRATE,
351350
"NF[%d] (%d) > MAX (%d), correcting to MAX\n",
352-
i, nf[i], ATH9K_NF_TOO_HIGH);
351+
i, nf[i], limit->max);
353352
nf[i] = limit->max;
354353
} else if (nf[i] < limit->min) {
355354
ath_dbg(common, CALIBRATE,

‎drivers/net/wireless/ath/ath9k/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
680680
hw->queues = 4;
681681
hw->max_rates = 4;
682682
hw->channel_change_time = 5000;
683-
hw->max_listen_interval = 10;
683+
hw->max_listen_interval = 1;
684684
hw->max_rate_tries = 10;
685685
hw->sta_data_size = sizeof(struct ath_node);
686686
hw->vif_data_size = sizeof(struct ath_vif);

‎drivers/net/wireless/ath/ath9k/recv.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,13 +1913,13 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
19131913
if (sc->rx.frag) {
19141914
int space = skb->len - skb_tailroom(hdr_skb);
19151915

1916-
sc->rx.frag = NULL;
1917-
19181916
if (pskb_expand_head(hdr_skb, 0, space, GFP_ATOMIC) < 0) {
19191917
dev_kfree_skb(skb);
19201918
goto requeue_drop_frag;
19211919
}
19221920

1921+
sc->rx.frag = NULL;
1922+
19231923
skb_copy_from_linear_data(skb, skb_put(hdr_skb, skb->len),
19241924
skb->len);
19251925
dev_kfree_skb_any(skb);

‎drivers/net/wireless/iwlegacy/3945-mac.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,8 +2673,6 @@ il3945_bg_restart(struct work_struct *data)
26732673

26742674
if (test_and_clear_bit(S_FW_ERROR, &il->status)) {
26752675
mutex_lock(&il->mutex);
2676-
/* FIXME: vif can be dereferenced */
2677-
il->vif = NULL;
26782676
il->is_open = 0;
26792677
mutex_unlock(&il->mutex);
26802678
il3945_down(il);

‎drivers/net/wireless/iwlegacy/4965-mac.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5652,8 +5652,6 @@ il4965_bg_restart(struct work_struct *data)
56525652

56535653
if (test_and_clear_bit(S_FW_ERROR, &il->status)) {
56545654
mutex_lock(&il->mutex);
5655-
/* FIXME: do we dereference vif without mutex locked ? */
5656-
il->vif = NULL;
56575655
il->is_open = 0;
56585656

56595657
__il4965_down(il);

‎drivers/net/wireless/iwlegacy/common.c‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4508,6 +4508,7 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
45084508
{
45094509
struct il_priv *il = hw->priv;
45104510
int err;
4511+
bool reset;
45114512

45124513
mutex_lock(&il->mutex);
45134514
D_MAC80211("enter: type %d, addr %pM\n", vif->type, vif->addr);
@@ -4518,7 +4519,12 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
45184519
goto out;
45194520
}
45204521

4521-
if (il->vif) {
4522+
/*
4523+
* We do not support multiple virtual interfaces, but on hardware reset
4524+
* we have to add the same interface again.
4525+
*/
4526+
reset = (il->vif == vif);
4527+
if (il->vif && !reset) {
45224528
err = -EOPNOTSUPP;
45234529
goto out;
45244530
}
@@ -4528,8 +4534,11 @@ il_mac_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
45284534

45294535
err = il_set_mode(il);
45304536
if (err) {
4531-
il->vif = NULL;
4532-
il->iw_mode = NL80211_IFTYPE_STATION;
4537+
IL_WARN("Fail to set mode %d\n", vif->type);
4538+
if (!reset) {
4539+
il->vif = NULL;
4540+
il->iw_mode = NL80211_IFTYPE_STATION;
4541+
}
45334542
}
45344543

45354544
out:
@@ -5279,9 +5288,9 @@ il_mac_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
52795288
D_MAC80211("BSSID %pM\n", bss_conf->bssid);
52805289

52815290
/*
5282-
* If there is currently a HW scan going on in the
5283-
* background then we need to cancel it else the RXON
5284-
* below/in post_associate will fail.
5291+
* If there is currently a HW scan going on in the background,
5292+
* then we need to cancel it, otherwise sometimes we are not
5293+
* able to authenticate (FIXME: why ?)
52855294
*/
52865295
if (il_scan_cancel_timeout(il, 100)) {
52875296
D_MAC80211("leave - scan abort failed\n");
@@ -5290,14 +5299,10 @@ il_mac_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
52905299
}
52915300

52925301
/* mac80211 only sets assoc when in STATION mode */
5293-
if (vif->type == NL80211_IFTYPE_ADHOC || bss_conf->assoc) {
5294-
memcpy(il->staging.bssid_addr, bss_conf->bssid,
5295-
ETH_ALEN);
5302+
memcpy(il->staging.bssid_addr, bss_conf->bssid, ETH_ALEN);
52965303

5297-
/* currently needed in a few places */
5298-
memcpy(il->bssid, bss_conf->bssid, ETH_ALEN);
5299-
} else
5300-
il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
5304+
/* FIXME: currently needed in a few places */
5305+
memcpy(il->bssid, bss_conf->bssid, ETH_ALEN);
53015306
}
53025307

53035308
/*

‎drivers/net/wireless/rt2x00/rt2800usb.c‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ static bool rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev,
163163

164164
/* Reschedule urb to read TX status again instantly */
165165
return true;
166-
} else if (rt2800usb_txstatus_pending(rt2x00dev)) {
166+
}
167+
168+
/* Check if there is any entry that timedout waiting on TX status */
169+
if (rt2800usb_txstatus_timeout(rt2x00dev))
170+
queue_work(rt2x00dev->workqueue, &rt2x00dev->txdone_work);
171+
172+
if (rt2800usb_txstatus_pending(rt2x00dev)) {
167173
/* Read register after 250 us */
168174
hrtimer_start(&rt2x00dev->txstatus_timer, ktime_set(0, 250000),
169175
HRTIMER_MODE_REL);
@@ -178,7 +184,7 @@ static bool rt2800usb_tx_sta_fifo_read_completed(struct rt2x00_dev *rt2x00dev,
178184
* here again if status reading is needed.
179185
*/
180186
if (rt2800usb_txstatus_pending(rt2x00dev) &&
181-
test_and_set_bit(TX_STATUS_READING, &rt2x00dev->flags))
187+
!test_and_set_bit(TX_STATUS_READING, &rt2x00dev->flags))
182188
return true;
183189
else
184190
return false;

‎drivers/net/wireless/rtlwifi/rtl8192c/phy_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ void rtl92c_phy_set_io(struct ieee80211_hw *hw)
18931893
break;
18941894
case IO_CMD_PAUSE_DM_BY_SCAN:
18951895
rtlphy->initgain_backup.xaagccore1 = dm_digtable.cur_igvalue;
1896-
dm_digtable.cur_igvalue = 0x17;
1896+
dm_digtable.cur_igvalue = 0x37;
18971897
rtl92c_dm_write_dig(hw);
18981898
break;
18991899
default:

‎drivers/net/wireless/rtlwifi/rtl8192de/phy.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ static void rtl92d_phy_set_io(struct ieee80211_hw *hw)
30773077
break;
30783078
case IO_CMD_PAUSE_DM_BY_SCAN:
30793079
rtlphy->initgain_backup.xaagccore1 = de_digtable.cur_igvalue;
3080-
de_digtable.cur_igvalue = 0x17;
3080+
de_digtable.cur_igvalue = 0x37;
30813081
rtl92d_dm_write_dig(hw);
30823082
break;
30833083
default:

0 commit comments

Comments
 (0)