diff options
author | David Kilroy <kilroyd@googlemail.com> | 2009-02-04 18:05:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-11 11:44:26 -0500 |
commit | b2f30a0a2395b6c7e7138fbdabec2cb02ff373a7 (patch) | |
tree | c2eae9959b99e921bb7e8a62788aa92c2852e410 /drivers | |
parent | 566f2d9eac49119289cd73e6c302ecc392eaf932 (diff) |
orinoco: keep line length below 80 characters
Remove most checkpatch warnings of the type
WARNING: line over 80 characters
Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco.c | 113 |
1 files changed, 68 insertions, 45 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco.c b/drivers/net/wireless/orinoco/orinoco.c index b1c763fd1246..acfced8ea0d5 100644 --- a/drivers/net/wireless/orinoco/orinoco.c +++ b/drivers/net/wireless/orinoco/orinoco.c | |||
@@ -101,8 +101,10 @@ | |||
101 | /* Module information */ | 101 | /* Module information */ |
102 | /********************************************************************/ | 102 | /********************************************************************/ |
103 | 103 | ||
104 | MODULE_AUTHOR("Pavel Roskin <proski@gnu.org> & David Gibson <hermes@gibson.dropbear.id.au>"); | 104 | MODULE_AUTHOR("Pavel Roskin <proski@gnu.org> & " |
105 | MODULE_DESCRIPTION("Driver for Lucent Orinoco, Prism II based and similar wireless cards"); | 105 | "David Gibson <hermes@gibson.dropbear.id.au>"); |
106 | MODULE_DESCRIPTION("Driver for Lucent Orinoco, Prism II based " | ||
107 | "and similar wireless cards"); | ||
106 | MODULE_LICENSE("Dual MPL/GPL"); | 108 | MODULE_LICENSE("Dual MPL/GPL"); |
107 | 109 | ||
108 | /* Level of debugging. Used in the macros in orinoco.h */ | 110 | /* Level of debugging. Used in the macros in orinoco.h */ |
@@ -116,9 +118,11 @@ EXPORT_SYMBOL(orinoco_debug); | |||
116 | static int suppress_linkstatus; /* = 0 */ | 118 | static int suppress_linkstatus; /* = 0 */ |
117 | module_param(suppress_linkstatus, bool, 0644); | 119 | module_param(suppress_linkstatus, bool, 0644); |
118 | MODULE_PARM_DESC(suppress_linkstatus, "Don't log link status changes"); | 120 | MODULE_PARM_DESC(suppress_linkstatus, "Don't log link status changes"); |
121 | |||
119 | static int ignore_disconnect; /* = 0 */ | 122 | static int ignore_disconnect; /* = 0 */ |
120 | module_param(ignore_disconnect, int, 0644); | 123 | module_param(ignore_disconnect, int, 0644); |
121 | MODULE_PARM_DESC(ignore_disconnect, "Don't report lost link to the network layer"); | 124 | MODULE_PARM_DESC(ignore_disconnect, |
125 | "Don't report lost link to the network layer"); | ||
122 | 126 | ||
123 | static int force_monitor; /* = 0 */ | 127 | static int force_monitor; /* = 0 */ |
124 | module_param(force_monitor, int, 0644); | 128 | module_param(force_monitor, int, 0644); |
@@ -840,7 +844,8 @@ static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev) | |||
840 | wstats->qual.qual = priv->spy_data.spy_stat[0].qual; | 844 | wstats->qual.qual = priv->spy_data.spy_stat[0].qual; |
841 | wstats->qual.level = priv->spy_data.spy_stat[0].level; | 845 | wstats->qual.level = priv->spy_data.spy_stat[0].level; |
842 | wstats->qual.noise = priv->spy_data.spy_stat[0].noise; | 846 | wstats->qual.noise = priv->spy_data.spy_stat[0].noise; |
843 | wstats->qual.updated = priv->spy_data.spy_stat[0].updated; | 847 | wstats->qual.updated = |
848 | priv->spy_data.spy_stat[0].updated; | ||
844 | } | 849 | } |
845 | } else { | 850 | } else { |
846 | struct { | 851 | struct { |
@@ -854,7 +859,8 @@ static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev) | |||
854 | wstats->qual.qual = (int)le16_to_cpu(cq.qual); | 859 | wstats->qual.qual = (int)le16_to_cpu(cq.qual); |
855 | wstats->qual.level = (int)le16_to_cpu(cq.signal) - 0x95; | 860 | wstats->qual.level = (int)le16_to_cpu(cq.signal) - 0x95; |
856 | wstats->qual.noise = (int)le16_to_cpu(cq.noise) - 0x95; | 861 | wstats->qual.noise = (int)le16_to_cpu(cq.noise) - 0x95; |
857 | wstats->qual.updated = IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; | 862 | wstats->qual.updated = |
863 | IW_QUAL_ALL_UPDATED | IW_QUAL_DBM; | ||
858 | } | 864 | } |
859 | } | 865 | } |
860 | 866 | ||
@@ -1571,7 +1577,8 @@ static void orinoco_rx(struct net_device *dev, | |||
1571 | /* These indicate a SNAP within 802.2 LLC within | 1577 | /* These indicate a SNAP within 802.2 LLC within |
1572 | 802.11 frame which we'll need to de-encapsulate to | 1578 | 802.11 frame which we'll need to de-encapsulate to |
1573 | the original EthernetII frame. */ | 1579 | the original EthernetII frame. */ |
1574 | hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN - ENCAPS_OVERHEAD); | 1580 | hdr = (struct ethhdr *)skb_push(skb, |
1581 | ETH_HLEN - ENCAPS_OVERHEAD); | ||
1575 | } else { | 1582 | } else { |
1576 | /* 802.3 frame - prepend 802.3 header as is */ | 1583 | /* 802.3 frame - prepend 802.3 header as is */ |
1577 | hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN); | 1584 | hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN); |
@@ -2379,25 +2386,26 @@ int orinoco_reinit_firmware(struct net_device *dev) | |||
2379 | static int __orinoco_hw_set_bitrate(struct orinoco_private *priv) | 2386 | static int __orinoco_hw_set_bitrate(struct orinoco_private *priv) |
2380 | { | 2387 | { |
2381 | hermes_t *hw = &priv->hw; | 2388 | hermes_t *hw = &priv->hw; |
2389 | int ratemode = priv->bitratemode; | ||
2382 | int err = 0; | 2390 | int err = 0; |
2383 | 2391 | ||
2384 | if (priv->bitratemode >= BITRATE_TABLE_SIZE) { | 2392 | if (ratemode >= BITRATE_TABLE_SIZE) { |
2385 | printk(KERN_ERR "%s: BUG: Invalid bitrate mode %d\n", | 2393 | printk(KERN_ERR "%s: BUG: Invalid bitrate mode %d\n", |
2386 | priv->ndev->name, priv->bitratemode); | 2394 | priv->ndev->name, ratemode); |
2387 | return -EINVAL; | 2395 | return -EINVAL; |
2388 | } | 2396 | } |
2389 | 2397 | ||
2390 | switch (priv->firmware_type) { | 2398 | switch (priv->firmware_type) { |
2391 | case FIRMWARE_TYPE_AGERE: | 2399 | case FIRMWARE_TYPE_AGERE: |
2392 | err = hermes_write_wordrec(hw, USER_BAP, | 2400 | err = hermes_write_wordrec(hw, USER_BAP, |
2393 | HERMES_RID_CNFTXRATECONTROL, | 2401 | HERMES_RID_CNFTXRATECONTROL, |
2394 | bitrate_table[priv->bitratemode].agere_txratectrl); | 2402 | bitrate_table[ratemode].agere_txratectrl); |
2395 | break; | 2403 | break; |
2396 | case FIRMWARE_TYPE_INTERSIL: | 2404 | case FIRMWARE_TYPE_INTERSIL: |
2397 | case FIRMWARE_TYPE_SYMBOL: | 2405 | case FIRMWARE_TYPE_SYMBOL: |
2398 | err = hermes_write_wordrec(hw, USER_BAP, | 2406 | err = hermes_write_wordrec(hw, USER_BAP, |
2399 | HERMES_RID_CNFTXRATECONTROL, | 2407 | HERMES_RID_CNFTXRATECONTROL, |
2400 | bitrate_table[priv->bitratemode].intersil_txratectrl); | 2408 | bitrate_table[ratemode].intersil_txratectrl); |
2401 | break; | 2409 | break; |
2402 | default: | 2410 | default: |
2403 | BUG(); | 2411 | BUG(); |
@@ -2465,7 +2473,8 @@ static int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv) | |||
2465 | int keylen; | 2473 | int keylen; |
2466 | int i; | 2474 | int i; |
2467 | 2475 | ||
2468 | /* Force uniform key length to work around firmware bugs */ | 2476 | /* Force uniform key length to work around |
2477 | * firmware bugs */ | ||
2469 | keylen = le16_to_cpu(priv->keys[priv->tx_key].len); | 2478 | keylen = le16_to_cpu(priv->keys[priv->tx_key].len); |
2470 | 2479 | ||
2471 | if (keylen > LARGE_KEY_SIZE) { | 2480 | if (keylen > LARGE_KEY_SIZE) { |
@@ -2477,17 +2486,17 @@ static int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv) | |||
2477 | /* Write all 4 keys */ | 2486 | /* Write all 4 keys */ |
2478 | for (i = 0; i < ORINOCO_MAX_KEYS; i++) { | 2487 | for (i = 0; i < ORINOCO_MAX_KEYS; i++) { |
2479 | err = hermes_write_ltv(hw, USER_BAP, | 2488 | err = hermes_write_ltv(hw, USER_BAP, |
2480 | HERMES_RID_CNFDEFAULTKEY0 + i, | 2489 | HERMES_RID_CNFDEFAULTKEY0 + i, |
2481 | HERMES_BYTES_TO_RECLEN(keylen), | 2490 | HERMES_BYTES_TO_RECLEN(keylen), |
2482 | priv->keys[i].data); | 2491 | priv->keys[i].data); |
2483 | if (err) | 2492 | if (err) |
2484 | return err; | 2493 | return err; |
2485 | } | 2494 | } |
2486 | 2495 | ||
2487 | /* Write the index of the key used in transmission */ | 2496 | /* Write the index of the key used in transmission */ |
2488 | err = hermes_write_wordrec(hw, USER_BAP, | 2497 | err = hermes_write_wordrec(hw, USER_BAP, |
2489 | HERMES_RID_CNFWEPDEFAULTKEYID, | 2498 | HERMES_RID_CNFWEPDEFAULTKEYID, |
2490 | priv->tx_key); | 2499 | priv->tx_key); |
2491 | if (err) | 2500 | if (err) |
2492 | return err; | 2501 | return err; |
2493 | } | 2502 | } |
@@ -2526,8 +2535,8 @@ static int __orinoco_hw_setup_enc(struct orinoco_private *priv) | |||
2526 | if (priv->encode_alg == IW_ENCODE_ALG_WEP) { | 2535 | if (priv->encode_alg == IW_ENCODE_ALG_WEP) { |
2527 | /* Enable the shared-key authentication. */ | 2536 | /* Enable the shared-key authentication. */ |
2528 | err = hermes_write_wordrec(hw, USER_BAP, | 2537 | err = hermes_write_wordrec(hw, USER_BAP, |
2529 | HERMES_RID_CNFAUTHENTICATION_AGERE, | 2538 | HERMES_RID_CNFAUTHENTICATION_AGERE, |
2530 | auth_flag); | 2539 | auth_flag); |
2531 | } | 2540 | } |
2532 | err = hermes_write_wordrec(hw, USER_BAP, | 2541 | err = hermes_write_wordrec(hw, USER_BAP, |
2533 | HERMES_RID_CNFWEPENABLED_AGERE, | 2542 | HERMES_RID_CNFWEPENABLED_AGERE, |
@@ -2730,16 +2739,16 @@ static int __orinoco_program_rids(struct net_device *dev) | |||
2730 | memcpy(&idbuf.val, priv->desired_essid, sizeof(idbuf.val)); | 2739 | memcpy(&idbuf.val, priv->desired_essid, sizeof(idbuf.val)); |
2731 | /* WinXP wants partner to configure OWNSSID even in IBSS mode. (jimc) */ | 2740 | /* WinXP wants partner to configure OWNSSID even in IBSS mode. (jimc) */ |
2732 | err = hermes_write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNSSID, | 2741 | err = hermes_write_ltv(hw, USER_BAP, HERMES_RID_CNFOWNSSID, |
2733 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), | 2742 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), |
2734 | &idbuf); | 2743 | &idbuf); |
2735 | if (err) { | 2744 | if (err) { |
2736 | printk(KERN_ERR "%s: Error %d setting OWNSSID\n", | 2745 | printk(KERN_ERR "%s: Error %d setting OWNSSID\n", |
2737 | dev->name, err); | 2746 | dev->name, err); |
2738 | return err; | 2747 | return err; |
2739 | } | 2748 | } |
2740 | err = hermes_write_ltv(hw, USER_BAP, HERMES_RID_CNFDESIREDSSID, | 2749 | err = hermes_write_ltv(hw, USER_BAP, HERMES_RID_CNFDESIREDSSID, |
2741 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), | 2750 | HERMES_BYTES_TO_RECLEN(strlen(priv->desired_essid)+2), |
2742 | &idbuf); | 2751 | &idbuf); |
2743 | if (err) { | 2752 | if (err) { |
2744 | printk(KERN_ERR "%s: Error %d setting DESIREDSSID\n", | 2753 | printk(KERN_ERR "%s: Error %d setting DESIREDSSID\n", |
2745 | dev->name, err); | 2754 | dev->name, err); |
@@ -2764,7 +2773,7 @@ static int __orinoco_program_rids(struct net_device *dev) | |||
2764 | HERMES_RID_CNFSYSTEMSCALE, | 2773 | HERMES_RID_CNFSYSTEMSCALE, |
2765 | priv->ap_density); | 2774 | priv->ap_density); |
2766 | if (err) { | 2775 | if (err) { |
2767 | printk(KERN_WARNING "%s: Error %d setting SYSTEMSCALE. " | 2776 | printk(KERN_WARNING "%s: Error %d setting SYSTEMSCALE. " |
2768 | "Disabling sensitivity control\n", | 2777 | "Disabling sensitivity control\n", |
2769 | dev->name, err); | 2778 | dev->name, err); |
2770 | 2779 | ||
@@ -3002,7 +3011,8 @@ static void orinoco_reset(struct work_struct *work) | |||
3002 | goto disable; | 3011 | goto disable; |
3003 | } | 3012 | } |
3004 | 3013 | ||
3005 | spin_lock_irq(&priv->lock); /* This has to be called from user context */ | 3014 | /* This has to be called from user context */ |
3015 | spin_lock_irq(&priv->lock); | ||
3006 | 3016 | ||
3007 | priv->hw_unavailable--; | 3017 | priv->hw_unavailable--; |
3008 | 3018 | ||
@@ -3293,7 +3303,8 @@ static int determine_firmware(struct net_device *dev) | |||
3293 | SYMBOL_MAX_VER_LEN, NULL, &tmp); | 3303 | SYMBOL_MAX_VER_LEN, NULL, &tmp); |
3294 | if (err) { | 3304 | if (err) { |
3295 | printk(KERN_WARNING | 3305 | printk(KERN_WARNING |
3296 | "%s: Error %d reading Symbol firmware info. Wildly guessing capabilities...\n", | 3306 | "%s: Error %d reading Symbol firmware info. " |
3307 | "Wildly guessing capabilities...\n", | ||
3297 | dev->name, err); | 3308 | dev->name, err); |
3298 | firmver = 0; | 3309 | firmver = 0; |
3299 | tmp[0] = '\0'; | 3310 | tmp[0] = '\0'; |
@@ -3302,8 +3313,10 @@ static int determine_firmware(struct net_device *dev) | |||
3302 | * something like : "V2.20-01". | 3313 | * something like : "V2.20-01". |
3303 | * Quick and dirty parsing... - Jean II | 3314 | * Quick and dirty parsing... - Jean II |
3304 | */ | 3315 | */ |
3305 | firmver = ((tmp[1] - '0') << 16) | ((tmp[3] - '0') << 12) | 3316 | firmver = ((tmp[1] - '0') << 16) |
3306 | | ((tmp[4] - '0') << 8) | ((tmp[6] - '0') << 4) | 3317 | | ((tmp[3] - '0') << 12) |
3318 | | ((tmp[4] - '0') << 8) | ||
3319 | | ((tmp[6] - '0') << 4) | ||
3307 | | (tmp[7] - '0'); | 3320 | | (tmp[7] - '0'); |
3308 | 3321 | ||
3309 | tmp[SYMBOL_MAX_VER_LEN] = '\0'; | 3322 | tmp[SYMBOL_MAX_VER_LEN] = '\0'; |
@@ -3336,7 +3349,7 @@ static int determine_firmware(struct net_device *dev) | |||
3336 | priv->do_fw_download = (priv->stop_fw != NULL); | 3349 | priv->do_fw_download = (priv->stop_fw != NULL); |
3337 | 3350 | ||
3338 | priv->broken_disableport = (firmver == 0x25013) || | 3351 | priv->broken_disableport = (firmver == 0x25013) || |
3339 | (firmver >= 0x30000 && firmver <= 0x31000); | 3352 | (firmver >= 0x30000 && firmver <= 0x31000); |
3340 | priv->has_hostscan = (firmver >= 0x31001) || | 3353 | priv->has_hostscan = (firmver >= 0x31001) || |
3341 | (firmver >= 0x29057 && firmver < 0x30000); | 3354 | (firmver >= 0x29057 && firmver < 0x30000); |
3342 | /* Tested with Intel firmware : 0x20015 => Jean II */ | 3355 | /* Tested with Intel firmware : 0x20015 => Jean II */ |
@@ -3423,7 +3436,8 @@ static int orinoco_init(struct net_device *dev) | |||
3423 | } | 3436 | } |
3424 | 3437 | ||
3425 | if (priv->has_port3) | 3438 | if (priv->has_port3) |
3426 | printk(KERN_DEBUG "%s: Ad-hoc demo mode supported\n", dev->name); | 3439 | printk(KERN_DEBUG "%s: Ad-hoc demo mode supported\n", |
3440 | dev->name); | ||
3427 | if (priv->has_ibss) | 3441 | if (priv->has_ibss) |
3428 | printk(KERN_DEBUG "%s: IEEE standard IBSS ad-hoc mode supported\n", | 3442 | printk(KERN_DEBUG "%s: IEEE standard IBSS ad-hoc mode supported\n", |
3429 | dev->name); | 3443 | dev->name); |
@@ -3515,7 +3529,8 @@ static int orinoco_init(struct net_device *dev) | |||
3515 | HERMES_RID_CNFMWOROBUST_AGERE, | 3529 | HERMES_RID_CNFMWOROBUST_AGERE, |
3516 | &priv->mwo_robust); | 3530 | &priv->mwo_robust); |
3517 | else | 3531 | else |
3518 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFFRAGMENTATIONTHRESHOLD, | 3532 | err = hermes_read_wordrec(hw, USER_BAP, |
3533 | HERMES_RID_CNFFRAGMENTATIONTHRESHOLD, | ||
3519 | &priv->frag_thresh); | 3534 | &priv->frag_thresh); |
3520 | if (err) { | 3535 | if (err) { |
3521 | printk(KERN_ERR "%s: failed to read fragmentation settings!\n", | 3536 | printk(KERN_ERR "%s: failed to read fragmentation settings!\n", |
@@ -3758,7 +3773,8 @@ static int orinoco_hw_get_freq(struct orinoco_private *priv) | |||
3758 | if (orinoco_lock(priv, &flags) != 0) | 3773 | if (orinoco_lock(priv, &flags) != 0) |
3759 | return -EBUSY; | 3774 | return -EBUSY; |
3760 | 3775 | ||
3761 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CURRENTCHANNEL, &channel); | 3776 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CURRENTCHANNEL, |
3777 | &channel); | ||
3762 | if (err) | 3778 | if (err) |
3763 | goto out; | 3779 | goto out; |
3764 | 3780 | ||
@@ -4064,7 +4080,8 @@ static int orinoco_ioctl_getiwrange(struct net_device *dev, | |||
4064 | range->max_pmt = 65535 * 1000; /* ??? */ | 4080 | range->max_pmt = 65535 * 1000; /* ??? */ |
4065 | range->pmp_flags = IW_POWER_PERIOD; | 4081 | range->pmp_flags = IW_POWER_PERIOD; |
4066 | range->pmt_flags = IW_POWER_TIMEOUT; | 4082 | range->pmt_flags = IW_POWER_TIMEOUT; |
4067 | range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_UNICAST_R; | 4083 | range->pm_capa = (IW_POWER_PERIOD | IW_POWER_TIMEOUT | |
4084 | IW_POWER_UNICAST_R); | ||
4068 | 4085 | ||
4069 | range->retry_capa = IW_RETRY_LIMIT | IW_RETRY_LIFETIME; | 4086 | range->retry_capa = IW_RETRY_LIMIT | IW_RETRY_LIFETIME; |
4070 | range->retry_flags = IW_RETRY_LIMIT; | 4087 | range->retry_flags = IW_RETRY_LIMIT; |
@@ -4506,9 +4523,10 @@ static int orinoco_ioctl_setfrag(struct net_device *dev, | |||
4506 | priv->mwo_robust = 0; | 4523 | priv->mwo_robust = 0; |
4507 | else { | 4524 | else { |
4508 | if (frq->fixed) | 4525 | if (frq->fixed) |
4509 | printk(KERN_WARNING "%s: Fixed fragmentation is " | 4526 | printk(KERN_WARNING "%s: Fixed fragmentation " |
4510 | "not supported on this firmware. " | 4527 | "is not supported on this firmware. " |
4511 | "Using MWO robust instead.\n", dev->name); | 4528 | "Using MWO robust instead.\n", |
4529 | dev->name); | ||
4512 | priv->mwo_robust = 1; | 4530 | priv->mwo_robust = 1; |
4513 | } | 4531 | } |
4514 | } else { | 4532 | } else { |
@@ -4518,7 +4536,8 @@ static int orinoco_ioctl_setfrag(struct net_device *dev, | |||
4518 | if ((frq->value < 256) || (frq->value > 2346)) | 4536 | if ((frq->value < 256) || (frq->value > 2346)) |
4519 | err = -EINVAL; | 4537 | err = -EINVAL; |
4520 | else | 4538 | else |
4521 | priv->frag_thresh = frq->value & ~0x1; /* must be even */ | 4539 | /* must be even */ |
4540 | priv->frag_thresh = frq->value & ~0x1; | ||
4522 | } | 4541 | } |
4523 | } | 4542 | } |
4524 | 4543 | ||
@@ -4552,7 +4571,8 @@ static int orinoco_ioctl_getfrag(struct net_device *dev, | |||
4552 | frq->disabled = !val; | 4571 | frq->disabled = !val; |
4553 | frq->fixed = 0; | 4572 | frq->fixed = 0; |
4554 | } else { | 4573 | } else { |
4555 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFFRAGMENTATIONTHRESHOLD, | 4574 | err = hermes_read_wordrec(hw, USER_BAP, |
4575 | HERMES_RID_CNFFRAGMENTATIONTHRESHOLD, | ||
4556 | &val); | 4576 | &val); |
4557 | if (err) | 4577 | if (err) |
4558 | val = 0; | 4578 | val = 0; |
@@ -4747,7 +4767,8 @@ static int orinoco_ioctl_getpower(struct net_device *dev, | |||
4747 | if (orinoco_lock(priv, &flags) != 0) | 4767 | if (orinoco_lock(priv, &flags) != 0) |
4748 | return -EBUSY; | 4768 | return -EBUSY; |
4749 | 4769 | ||
4750 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFPMENABLED, &enable); | 4770 | err = hermes_read_wordrec(hw, USER_BAP, |
4771 | HERMES_RID_CNFPMENABLED, &enable); | ||
4751 | if (err) | 4772 | if (err) |
4752 | goto out; | 4773 | goto out; |
4753 | 4774 | ||
@@ -4756,11 +4777,13 @@ static int orinoco_ioctl_getpower(struct net_device *dev, | |||
4756 | if (err) | 4777 | if (err) |
4757 | goto out; | 4778 | goto out; |
4758 | 4779 | ||
4759 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFPMHOLDOVERDURATION, &timeout); | 4780 | err = hermes_read_wordrec(hw, USER_BAP, |
4781 | HERMES_RID_CNFPMHOLDOVERDURATION, &timeout); | ||
4760 | if (err) | 4782 | if (err) |
4761 | goto out; | 4783 | goto out; |
4762 | 4784 | ||
4763 | err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFMULTICASTRECEIVE, &mcast); | 4785 | err = hermes_read_wordrec(hw, USER_BAP, |
4786 | HERMES_RID_CNFMULTICASTRECEIVE, &mcast); | ||
4764 | if (err) | 4787 | if (err) |
4765 | goto out; | 4788 | goto out; |
4766 | 4789 | ||
@@ -5486,9 +5509,9 @@ static int orinoco_ioctl_setscan(struct net_device *dev, | |||
5486 | switch (priv->firmware_type) { | 5509 | switch (priv->firmware_type) { |
5487 | case FIRMWARE_TYPE_SYMBOL: | 5510 | case FIRMWARE_TYPE_SYMBOL: |
5488 | err = hermes_write_wordrec(hw, USER_BAP, | 5511 | err = hermes_write_wordrec(hw, USER_BAP, |
5489 | HERMES_RID_CNFHOSTSCAN_SYMBOL, | 5512 | HERMES_RID_CNFHOSTSCAN_SYMBOL, |
5490 | HERMES_HOSTSCAN_SYMBOL_ONCE | | 5513 | HERMES_HOSTSCAN_SYMBOL_ONCE | |
5491 | HERMES_HOSTSCAN_SYMBOL_BCAST); | 5514 | HERMES_HOSTSCAN_SYMBOL_BCAST); |
5492 | break; | 5515 | break; |
5493 | case FIRMWARE_TYPE_INTERSIL: { | 5516 | case FIRMWARE_TYPE_INTERSIL: { |
5494 | __le16 req[3]; | 5517 | __le16 req[3]; |