diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-21 00:04:44 -0400 |
commit | f8965467f366fd18f01feafb5db10512d7b4422c (patch) | |
tree | 3706a9cd779859271ca61b85c63a1bc3f82d626e /drivers/net/wireless/airo.c | |
parent | a26272e5200765691e67d6780e52b32498fdb659 (diff) | |
parent | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits)
qlcnic: adding co maintainer
ixgbe: add support for active DA cables
ixgbe: dcb, do not tag tc_prio_control frames
ixgbe: fix ixgbe_tx_is_paused logic
ixgbe: always enable vlan strip/insert when DCB is enabled
ixgbe: remove some redundant code in setting FCoE FIP filter
ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp
ixgbe: fix header len when unsplit packet overflows to data buffer
ipv6: Never schedule DAD timer on dead address
ipv6: Use POSTDAD state
ipv6: Use state_lock to protect ifa state
ipv6: Replace inet6_ifaddr->dead with state
cxgb4: notify upper drivers if the device is already up when they load
cxgb4: keep interrupts available when the ports are brought down
cxgb4: fix initial addition of MAC address
cnic: Return SPQ credit to bnx2x after ring setup and shutdown.
cnic: Convert cnic_local_flags to atomic ops.
can: Fix SJA1000 command register writes on SMP systems
bridge: fix build for CONFIG_SYSFS disabled
ARCNET: Limit com20020 PCI ID matches for SOHARD cards
...
Fix up various conflicts with pcmcia tree drivers/net/
{pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and
wireless/orinoco/spectrum_cs.c} and feature removal
(Documentation/feature-removal-schedule.txt).
Also fix a non-content conflict due to pm_qos_requirement getting
renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index dc5018a6d9ed..a441aad922c2 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -2876,7 +2876,7 @@ static struct net_device *_init_airo_card( unsigned short irq, int port, | |||
2876 | ai->wep_capable = (cap_rid.softCap & cpu_to_le16(0x02)) ? 1 : 0; | 2876 | ai->wep_capable = (cap_rid.softCap & cpu_to_le16(0x02)) ? 1 : 0; |
2877 | ai->max_wep_idx = (cap_rid.softCap & cpu_to_le16(0x80)) ? 3 : 0; | 2877 | ai->max_wep_idx = (cap_rid.softCap & cpu_to_le16(0x80)) ? 3 : 0; |
2878 | 2878 | ||
2879 | airo_print_info(dev->name, "Firmware version %x.%x.%02x", | 2879 | airo_print_info(dev->name, "Firmware version %x.%x.%02d", |
2880 | ((le16_to_cpu(cap_rid.softVer) >> 8) & 0xF), | 2880 | ((le16_to_cpu(cap_rid.softVer) >> 8) & 0xF), |
2881 | (le16_to_cpu(cap_rid.softVer) & 0xFF), | 2881 | (le16_to_cpu(cap_rid.softVer) & 0xFF), |
2882 | le16_to_cpu(cap_rid.softSubVer)); | 2882 | le16_to_cpu(cap_rid.softSubVer)); |
@@ -3193,19 +3193,26 @@ static void airo_print_status(const char *devname, u16 status) | |||
3193 | { | 3193 | { |
3194 | u8 reason = status & 0xFF; | 3194 | u8 reason = status & 0xFF; |
3195 | 3195 | ||
3196 | switch (status) { | 3196 | switch (status & 0xFF00) { |
3197 | case STAT_NOBEACON: | 3197 | case STAT_NOBEACON: |
3198 | airo_print_dbg(devname, "link lost (missed beacons)"); | 3198 | switch (status) { |
3199 | break; | 3199 | case STAT_NOBEACON: |
3200 | case STAT_MAXRETRIES: | 3200 | airo_print_dbg(devname, "link lost (missed beacons)"); |
3201 | case STAT_MAXARL: | 3201 | break; |
3202 | airo_print_dbg(devname, "link lost (max retries)"); | 3202 | case STAT_MAXRETRIES: |
3203 | break; | 3203 | case STAT_MAXARL: |
3204 | case STAT_FORCELOSS: | 3204 | airo_print_dbg(devname, "link lost (max retries)"); |
3205 | airo_print_dbg(devname, "link lost (local choice)"); | 3205 | break; |
3206 | break; | 3206 | case STAT_FORCELOSS: |
3207 | case STAT_TSFSYNC: | 3207 | airo_print_dbg(devname, "link lost (local choice)"); |
3208 | airo_print_dbg(devname, "link lost (TSF sync lost)"); | 3208 | break; |
3209 | case STAT_TSFSYNC: | ||
3210 | airo_print_dbg(devname, "link lost (TSF sync lost)"); | ||
3211 | break; | ||
3212 | default: | ||
3213 | airo_print_dbg(devname, "unknow status %x\n", status); | ||
3214 | break; | ||
3215 | } | ||
3209 | break; | 3216 | break; |
3210 | case STAT_DEAUTH: | 3217 | case STAT_DEAUTH: |
3211 | airo_print_dbg(devname, "deauthenticated (reason: %d)", reason); | 3218 | airo_print_dbg(devname, "deauthenticated (reason: %d)", reason); |
@@ -3221,7 +3228,11 @@ static void airo_print_status(const char *devname, u16 status) | |||
3221 | airo_print_dbg(devname, "authentication failed (reason: %d)", | 3228 | airo_print_dbg(devname, "authentication failed (reason: %d)", |
3222 | reason); | 3229 | reason); |
3223 | break; | 3230 | break; |
3231 | case STAT_ASSOC: | ||
3232 | case STAT_REASSOC: | ||
3233 | break; | ||
3224 | default: | 3234 | default: |
3235 | airo_print_dbg(devname, "unknow status %x\n", status); | ||
3225 | break; | 3236 | break; |
3226 | } | 3237 | } |
3227 | } | 3238 | } |