Skip to content

Commit 02f1ce3

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
2 parents 5eccdf5 + 82e5fc2 commit 02f1ce3

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

drivers/net/wireless/p54/p54spi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,15 +588,15 @@ static void p54spi_op_stop(struct ieee80211_hw *dev)
588588

589589
WARN_ON(priv->fw_state != FW_STATE_READY);
590590

591-
cancel_work_sync(&priv->work);
592-
593591
p54spi_power_off(priv);
594592
spin_lock_irqsave(&priv->tx_lock, flags);
595593
INIT_LIST_HEAD(&priv->tx_pending);
596594
spin_unlock_irqrestore(&priv->tx_lock, flags);
597595

598596
priv->fw_state = FW_STATE_OFF;
599597
mutex_unlock(&priv->mutex);
598+
599+
cancel_work_sync(&priv->work);
600600
}
601601

602602
static int __devinit p54spi_probe(struct spi_device *spi)
@@ -656,6 +656,7 @@ static int __devinit p54spi_probe(struct spi_device *spi)
656656
init_completion(&priv->fw_comp);
657657
INIT_LIST_HEAD(&priv->tx_pending);
658658
mutex_init(&priv->mutex);
659+
spin_lock_init(&priv->tx_lock);
659660
SET_IEEE80211_DEV(hw, &spi->dev);
660661
priv->common.open = p54spi_op_start;
661662
priv->common.stop = p54spi_op_stop;

drivers/net/wireless/prism54/isl_ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ prism54_get_essid(struct net_device *ndev, struct iw_request_info *info,
778778
dwrq->flags = 0;
779779
dwrq->length = 0;
780780
}
781-
essid->octets[essid->length] = '\0';
781+
essid->octets[dwrq->length] = '\0';
782782
memcpy(extra, essid->octets, dwrq->length);
783783
kfree(essid);
784784

drivers/net/wireless/rt2x00/rt2800lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3771,7 +3771,7 @@ static void rt2800_efuse_read(struct rt2x00_dev *rt2x00dev, unsigned int i)
37713771
/* Apparently the data is read from end to start */
37723772
rt2800_register_read_lock(rt2x00dev, EFUSE_DATA3, &reg);
37733773
/* The returned value is in CPU order, but eeprom is le */
3774-
rt2x00dev->eeprom[i] = cpu_to_le32(reg);
3774+
*(u32 *)&rt2x00dev->eeprom[i] = cpu_to_le32(reg);
37753775
rt2800_register_read_lock(rt2x00dev, EFUSE_DATA2, &reg);
37763776
*(u32 *)&rt2x00dev->eeprom[i + 2] = cpu_to_le32(reg);
37773777
rt2800_register_read_lock(rt2x00dev, EFUSE_DATA1, &reg);

net/mac80211/debugfs_sta.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ static ssize_t sta_ht_capa_read(struct file *file, char __user *userbuf,
274274

275275
PRINT_HT_CAP((htc->cap & BIT(10)), "HT Delayed Block Ack");
276276

277-
PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
278-
"3839 bytes");
279277
PRINT_HT_CAP(!(htc->cap & BIT(11)), "Max AMSDU length: "
278+
"3839 bytes");
279+
PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: "
280280
"7935 bytes");
281281

282282
/*

net/mac80211/status.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static void ieee80211_add_tx_radiotap_header(struct ieee80211_supported_band
260260
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
261261
struct ieee80211_radiotap_header *rthdr;
262262
unsigned char *pos;
263-
__le16 txflags;
263+
u16 txflags;
264264

265265
rthdr = (struct ieee80211_radiotap_header *) skb_push(skb, rtap_len);
266266

@@ -290,13 +290,13 @@ static void ieee80211_add_tx_radiotap_header(struct ieee80211_supported_band
290290
txflags = 0;
291291
if (!(info->flags & IEEE80211_TX_STAT_ACK) &&
292292
!is_multicast_ether_addr(hdr->addr1))
293-
txflags |= cpu_to_le16(IEEE80211_RADIOTAP_F_TX_FAIL);
293+
txflags |= IEEE80211_RADIOTAP_F_TX_FAIL;
294294

295295
if ((info->status.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) ||
296296
(info->status.rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT))
297-
txflags |= cpu_to_le16(IEEE80211_RADIOTAP_F_TX_CTS);
297+
txflags |= IEEE80211_RADIOTAP_F_TX_CTS;
298298
else if (info->status.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS)
299-
txflags |= cpu_to_le16(IEEE80211_RADIOTAP_F_TX_RTS);
299+
txflags |= IEEE80211_RADIOTAP_F_TX_RTS;
300300

301301
put_unaligned_le16(txflags, pos);
302302
pos += 2;

net/wireless/reg.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,10 @@ static int __set_regdom(const struct ieee80211_regdomain *rd)
20372037
}
20382038

20392039
request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx);
2040+
if (!request_wiphy) {
2041+
reg_set_request_processed();
2042+
return -ENODEV;
2043+
}
20402044

20412045
if (!last_request->intersect) {
20422046
int r;

0 commit comments

Comments
 (0)