Skip to content

Commit f552ce5

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
2 parents d9d5283 + 83fc9c8 commit f552ce5

File tree

14 files changed

+46
-22
lines changed

14 files changed

+46
-22
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4280,7 +4280,7 @@ F: drivers/video/aty/aty128fb.c
42804280
RALINK RT2X00 WIRELESS LAN DRIVER
42814281
P: rt2x00 project
42824282
4283-
4283+
L: [email protected] (moderated for non-subscribers)
42844284
W: http://rt2x00.serialmonkey.com/
42854285
S: Maintained
42864286
T: git git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git

drivers/net/wireless/airo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4790,9 +4790,8 @@ static int proc_stats_rid_open( struct inode *inode,
47904790
static int get_dec_u16( char *buffer, int *start, int limit ) {
47914791
u16 value;
47924792
int valid = 0;
4793-
for( value = 0; buffer[*start] >= '0' &&
4794-
buffer[*start] <= '9' &&
4795-
*start < limit; (*start)++ ) {
4793+
for (value = 0; *start < limit && buffer[*start] >= '0' &&
4794+
buffer[*start] <= '9'; (*start)++) {
47964795
valid = 1;
47974796
value *= 10;
47984797
value += buffer[*start] - '0';

drivers/net/wireless/b43/leds.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef B43_LEDS_H_
22
#define B43_LEDS_H_
33

4+
struct b43_wl;
45
struct b43_wldev;
56

67
#ifdef CONFIG_B43_LEDS

drivers/net/wireless/b43/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4501,7 +4501,6 @@ static void b43_op_stop(struct ieee80211_hw *hw)
45014501

45024502
cancel_work_sync(&(wl->beacon_update_trigger));
45034503

4504-
wiphy_rfkill_stop_polling(hw->wiphy);
45054504
mutex_lock(&wl->mutex);
45064505
if (b43_status(dev) >= B43_STAT_STARTED) {
45074506
dev = b43_wireless_core_stop(dev);

drivers/net/wireless/b43/rfkill.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ bool b43_is_hw_radio_enabled(struct b43_wldev *dev)
3333
& B43_MMIO_RADIO_HWENABLED_HI_MASK))
3434
return 1;
3535
} else {
36-
if (b43_read16(dev, B43_MMIO_RADIO_HWENABLED_LO)
36+
if (b43_status(dev) >= B43_STAT_STARTED &&
37+
b43_read16(dev, B43_MMIO_RADIO_HWENABLED_LO)
3738
& B43_MMIO_RADIO_HWENABLED_LO_MASK)
3839
return 1;
3940
}

drivers/net/wireless/libertas/if_spi.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void spu_transaction_finish(struct if_spi_card *card)
134134
static int spu_write(struct if_spi_card *card, u16 reg, const u8 *buf, int len)
135135
{
136136
int err = 0;
137-
u16 reg_out = cpu_to_le16(reg | IF_SPI_WRITE_OPERATION_MASK);
137+
__le16 reg_out = cpu_to_le16(reg | IF_SPI_WRITE_OPERATION_MASK);
138138
struct spi_message m;
139139
struct spi_transfer reg_trans;
140140
struct spi_transfer data_trans;
@@ -166,7 +166,7 @@ static int spu_write(struct if_spi_card *card, u16 reg, const u8 *buf, int len)
166166

167167
static inline int spu_write_u16(struct if_spi_card *card, u16 reg, u16 val)
168168
{
169-
u16 buff;
169+
__le16 buff;
170170

171171
buff = cpu_to_le16(val);
172172
return spu_write(card, reg, (u8 *)&buff, sizeof(u16));
@@ -188,7 +188,7 @@ static int spu_read(struct if_spi_card *card, u16 reg, u8 *buf, int len)
188188
{
189189
unsigned int delay;
190190
int err = 0;
191-
u16 reg_out = cpu_to_le16(reg | IF_SPI_READ_OPERATION_MASK);
191+
__le16 reg_out = cpu_to_le16(reg | IF_SPI_READ_OPERATION_MASK);
192192
struct spi_message m;
193193
struct spi_transfer reg_trans;
194194
struct spi_transfer dummy_trans;
@@ -235,7 +235,7 @@ static int spu_read(struct if_spi_card *card, u16 reg, u8 *buf, int len)
235235
/* Read 16 bits from an SPI register */
236236
static inline int spu_read_u16(struct if_spi_card *card, u16 reg, u16 *val)
237237
{
238-
u16 buf;
238+
__le16 buf;
239239
int ret;
240240

241241
ret = spu_read(card, reg, (u8 *)&buf, sizeof(buf));
@@ -248,7 +248,7 @@ static inline int spu_read_u16(struct if_spi_card *card, u16 reg, u16 *val)
248248
* The low 16 bits are read first. */
249249
static int spu_read_u32(struct if_spi_card *card, u16 reg, u32 *val)
250250
{
251-
u32 buf;
251+
__le32 buf;
252252
int err;
253253

254254
err = spu_read(card, reg, (u8 *)&buf, sizeof(buf));

drivers/net/wireless/rt2x00/rt2800usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ static void rt2800usb_write_tx_desc(struct rt2x00_dev *rt2x00dev,
19941994
rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->ba_size);
19951995
rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID,
19961996
test_bit(ENTRY_TXD_ENCRYPT, &txdesc->flags) ?
1997-
(skbdesc->entry->entry_idx + 1) : 0xff);
1997+
txdesc->key_idx : 0xff);
19981998
rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT,
19991999
skb->len - txdesc->l2pad);
20002000
rt2x00_set_field32(&word, TXWI_W1_PACKETID,

net/mac80211/ibss.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,22 +538,20 @@ static void ieee80211_sta_find_ibss(struct ieee80211_sub_if_data *sdata)
538538
WLAN_CAPABILITY_PRIVACY,
539539
capability);
540540

541+
if (bss) {
541542
#ifdef CONFIG_MAC80211_IBSS_DEBUG
542-
if (bss)
543543
printk(KERN_DEBUG " sta_find_ibss: selected %pM current "
544544
"%pM\n", bss->cbss.bssid, ifibss->bssid);
545545
#endif /* CONFIG_MAC80211_IBSS_DEBUG */
546546

547-
if (bss && !memcmp(ifibss->bssid, bss->cbss.bssid, ETH_ALEN)) {
548547
printk(KERN_DEBUG "%s: Selected IBSS BSSID %pM"
549548
" based on configured SSID\n",
550549
sdata->dev->name, bss->cbss.bssid);
551550

552551
ieee80211_sta_join_ibss(sdata, bss);
553552
ieee80211_rx_bss_put(local, bss);
554553
return;
555-
} else if (bss)
556-
ieee80211_rx_bss_put(local, bss);
554+
}
557555

558556
#ifdef CONFIG_MAC80211_IBSS_DEBUG
559557
printk(KERN_DEBUG " did not try to join ibss\n");

net/mac80211/mesh_hwmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static u32 airtime_link_metric_get(struct ieee80211_local *local,
259259
* @hwmp_ie: hwmp information element (PREP or PREQ)
260260
*
261261
* This function updates the path routing information to the originator and the
262-
* transmitter of a HWMP PREQ or PREP fram.
262+
* transmitter of a HWMP PREQ or PREP frame.
263263
*
264264
* Returns: metric to frame originator or 0 if the frame should not be further
265265
* processed

net/mac80211/mlme.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,8 +1457,7 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata,
14571457
if (status_code != WLAN_STATUS_SUCCESS) {
14581458
printk(KERN_DEBUG "%s: AP denied association (code=%d)\n",
14591459
sdata->dev->name, status_code);
1460-
list_del(&wk->list);
1461-
kfree(wk);
1460+
wk->state = IEEE80211_MGD_STATE_IDLE;
14621461
return RX_MGMT_CFG80211_ASSOC;
14631462
}
14641463

0 commit comments

Comments
 (0)