aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r--drivers/net/wireless/b43/main.c100
1 files changed, 50 insertions, 50 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 5634d9a9965b..c74f36f6e348 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -1122,17 +1122,17 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags)
1122 B43_WARN_ON((ps_flags & B43_PS_AWAKE) && (ps_flags & B43_PS_ASLEEP)); 1122 B43_WARN_ON((ps_flags & B43_PS_AWAKE) && (ps_flags & B43_PS_ASLEEP));
1123 1123
1124 if (ps_flags & B43_PS_ENABLED) { 1124 if (ps_flags & B43_PS_ENABLED) {
1125 hwps = 1; 1125 hwps = true;
1126 } else if (ps_flags & B43_PS_DISABLED) { 1126 } else if (ps_flags & B43_PS_DISABLED) {
1127 hwps = 0; 1127 hwps = false;
1128 } else { 1128 } else {
1129 //TODO: If powersave is not off and FIXME is not set and we are not in adhoc 1129 //TODO: If powersave is not off and FIXME is not set and we are not in adhoc
1130 // and thus is not an AP and we are associated, set bit 25 1130 // and thus is not an AP and we are associated, set bit 25
1131 } 1131 }
1132 if (ps_flags & B43_PS_AWAKE) { 1132 if (ps_flags & B43_PS_AWAKE) {
1133 awake = 1; 1133 awake = true;
1134 } else if (ps_flags & B43_PS_ASLEEP) { 1134 } else if (ps_flags & B43_PS_ASLEEP) {
1135 awake = 0; 1135 awake = false;
1136 } else { 1136 } else {
1137 //TODO: If the device is awake or this is an AP, or we are scanning, or FIXME, 1137 //TODO: If the device is awake or this is an AP, or we are scanning, or FIXME,
1138 // or we are associated, or FIXME, or the latest PS-Poll packet sent was 1138 // or we are associated, or FIXME, or the latest PS-Poll packet sent was
@@ -1140,8 +1140,8 @@ void b43_power_saving_ctl_bits(struct b43_wldev *dev, unsigned int ps_flags)
1140 } 1140 }
1141 1141
1142/* FIXME: For now we force awake-on and hwps-off */ 1142/* FIXME: For now we force awake-on and hwps-off */
1143 hwps = 0; 1143 hwps = false;
1144 awake = 1; 1144 awake = true;
1145 1145
1146 macctl = b43_read32(dev, B43_MMIO_MACCTL); 1146 macctl = b43_read32(dev, B43_MMIO_MACCTL);
1147 if (hwps) 1147 if (hwps)
@@ -1339,7 +1339,7 @@ static void b43_calculate_link_quality(struct b43_wldev *dev)
1339 return; 1339 return;
1340 if (dev->noisecalc.calculation_running) 1340 if (dev->noisecalc.calculation_running)
1341 return; 1341 return;
1342 dev->noisecalc.calculation_running = 1; 1342 dev->noisecalc.calculation_running = true;
1343 dev->noisecalc.nr_samples = 0; 1343 dev->noisecalc.nr_samples = 0;
1344 1344
1345 b43_generate_noise_sample(dev); 1345 b43_generate_noise_sample(dev);
@@ -1408,7 +1408,7 @@ static void handle_irq_noise(struct b43_wldev *dev)
1408 average -= 48; 1408 average -= 48;
1409 1409
1410 dev->stats.link_noise = average; 1410 dev->stats.link_noise = average;
1411 dev->noisecalc.calculation_running = 0; 1411 dev->noisecalc.calculation_running = false;
1412 return; 1412 return;
1413 } 1413 }
1414generate_new: 1414generate_new:
@@ -1424,7 +1424,7 @@ static void handle_irq_tbtt_indication(struct b43_wldev *dev)
1424 b43_power_saving_ctl_bits(dev, 0); 1424 b43_power_saving_ctl_bits(dev, 0);
1425 } 1425 }
1426 if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC)) 1426 if (b43_is_mode(dev->wl, NL80211_IFTYPE_ADHOC))
1427 dev->dfq_valid = 1; 1427 dev->dfq_valid = true;
1428} 1428}
1429 1429
1430static void handle_irq_atim_end(struct b43_wldev *dev) 1430static void handle_irq_atim_end(struct b43_wldev *dev)
@@ -1433,7 +1433,7 @@ static void handle_irq_atim_end(struct b43_wldev *dev)
1433 b43_write32(dev, B43_MMIO_MACCMD, 1433 b43_write32(dev, B43_MMIO_MACCMD,
1434 b43_read32(dev, B43_MMIO_MACCMD) 1434 b43_read32(dev, B43_MMIO_MACCMD)
1435 | B43_MACCMD_DFQ_VALID); 1435 | B43_MACCMD_DFQ_VALID);
1436 dev->dfq_valid = 0; 1436 dev->dfq_valid = false;
1437 } 1437 }
1438} 1438}
1439 1439
@@ -1539,7 +1539,7 @@ static void b43_write_beacon_template(struct b43_wldev *dev,
1539 unsigned int i, len, variable_len; 1539 unsigned int i, len, variable_len;
1540 const struct ieee80211_mgmt *bcn; 1540 const struct ieee80211_mgmt *bcn;
1541 const u8 *ie; 1541 const u8 *ie;
1542 bool tim_found = 0; 1542 bool tim_found = false;
1543 unsigned int rate; 1543 unsigned int rate;
1544 u16 ctl; 1544 u16 ctl;
1545 int antenna; 1545 int antenna;
@@ -1588,7 +1588,7 @@ static void b43_write_beacon_template(struct b43_wldev *dev,
1588 /* A valid TIM is at least 4 bytes long. */ 1588 /* A valid TIM is at least 4 bytes long. */
1589 if (ie_len < 4) 1589 if (ie_len < 4)
1590 break; 1590 break;
1591 tim_found = 1; 1591 tim_found = true;
1592 1592
1593 tim_position = sizeof(struct b43_plcp_hdr6); 1593 tim_position = sizeof(struct b43_plcp_hdr6);
1594 tim_position += offsetof(struct ieee80211_mgmt, u.beacon.variable); 1594 tim_position += offsetof(struct ieee80211_mgmt, u.beacon.variable);
@@ -1625,7 +1625,7 @@ static void b43_upload_beacon0(struct b43_wldev *dev)
1625 if (wl->beacon0_uploaded) 1625 if (wl->beacon0_uploaded)
1626 return; 1626 return;
1627 b43_write_beacon_template(dev, 0x68, 0x18); 1627 b43_write_beacon_template(dev, 0x68, 0x18);
1628 wl->beacon0_uploaded = 1; 1628 wl->beacon0_uploaded = true;
1629} 1629}
1630 1630
1631static void b43_upload_beacon1(struct b43_wldev *dev) 1631static void b43_upload_beacon1(struct b43_wldev *dev)
@@ -1635,7 +1635,7 @@ static void b43_upload_beacon1(struct b43_wldev *dev)
1635 if (wl->beacon1_uploaded) 1635 if (wl->beacon1_uploaded)
1636 return; 1636 return;
1637 b43_write_beacon_template(dev, 0x468, 0x1A); 1637 b43_write_beacon_template(dev, 0x468, 0x1A);
1638 wl->beacon1_uploaded = 1; 1638 wl->beacon1_uploaded = true;
1639} 1639}
1640 1640
1641static void handle_irq_beacon(struct b43_wldev *dev) 1641static void handle_irq_beacon(struct b43_wldev *dev)
@@ -1667,7 +1667,7 @@ static void handle_irq_beacon(struct b43_wldev *dev)
1667 if (unlikely(wl->beacon_templates_virgin)) { 1667 if (unlikely(wl->beacon_templates_virgin)) {
1668 /* We never uploaded a beacon before. 1668 /* We never uploaded a beacon before.
1669 * Upload both templates now, but only mark one valid. */ 1669 * Upload both templates now, but only mark one valid. */
1670 wl->beacon_templates_virgin = 0; 1670 wl->beacon_templates_virgin = false;
1671 b43_upload_beacon0(dev); 1671 b43_upload_beacon0(dev);
1672 b43_upload_beacon1(dev); 1672 b43_upload_beacon1(dev);
1673 cmd = b43_read32(dev, B43_MMIO_MACCMD); 1673 cmd = b43_read32(dev, B43_MMIO_MACCMD);
@@ -1755,8 +1755,8 @@ static void b43_update_templates(struct b43_wl *wl)
1755 if (wl->current_beacon) 1755 if (wl->current_beacon)
1756 dev_kfree_skb_any(wl->current_beacon); 1756 dev_kfree_skb_any(wl->current_beacon);
1757 wl->current_beacon = beacon; 1757 wl->current_beacon = beacon;
1758 wl->beacon0_uploaded = 0; 1758 wl->beacon0_uploaded = false;
1759 wl->beacon1_uploaded = 0; 1759 wl->beacon1_uploaded = false;
1760 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger); 1760 ieee80211_queue_work(wl->hw, &wl->beacon_update_trigger);
1761} 1761}
1762 1762
@@ -1913,7 +1913,7 @@ static void b43_do_interrupt_thread(struct b43_wldev *dev)
1913 b43err(dev->wl, "This device does not support DMA " 1913 b43err(dev->wl, "This device does not support DMA "
1914 "on your system. It will now be switched to PIO.\n"); 1914 "on your system. It will now be switched to PIO.\n");
1915 /* Fall back to PIO transfers if we get fatal DMA errors! */ 1915 /* Fall back to PIO transfers if we get fatal DMA errors! */
1916 dev->use_pio = 1; 1916 dev->use_pio = true;
1917 b43_controller_restart(dev, "DMA error"); 1917 b43_controller_restart(dev, "DMA error");
1918 return; 1918 return;
1919 } 1919 }
@@ -2240,12 +2240,12 @@ static int b43_try_request_fw(struct b43_request_fw_context *ctx)
2240 filename = NULL; 2240 filename = NULL;
2241 else 2241 else
2242 goto err_no_pcm; 2242 goto err_no_pcm;
2243 fw->pcm_request_failed = 0; 2243 fw->pcm_request_failed = false;
2244 err = b43_do_request_fw(ctx, filename, &fw->pcm); 2244 err = b43_do_request_fw(ctx, filename, &fw->pcm);
2245 if (err == -ENOENT) { 2245 if (err == -ENOENT) {
2246 /* We did not find a PCM file? Not fatal, but 2246 /* We did not find a PCM file? Not fatal, but
2247 * core rev <= 10 must do without hwcrypto then. */ 2247 * core rev <= 10 must do without hwcrypto then. */
2248 fw->pcm_request_failed = 1; 2248 fw->pcm_request_failed = true;
2249 } else if (err) 2249 } else if (err)
2250 goto err_load; 2250 goto err_load;
2251 2251
@@ -2535,7 +2535,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2535 dev->wl->hw->queues = dev->wl->mac80211_initially_registered_queues; 2535 dev->wl->hw->queues = dev->wl->mac80211_initially_registered_queues;
2536 dev->qos_enabled = !!modparam_qos; 2536 dev->qos_enabled = !!modparam_qos;
2537 /* Default to firmware/hardware crypto acceleration. */ 2537 /* Default to firmware/hardware crypto acceleration. */
2538 dev->hwcrypto_enabled = 1; 2538 dev->hwcrypto_enabled = true;
2539 2539
2540 if (dev->fw.opensource) { 2540 if (dev->fw.opensource) {
2541 u16 fwcapa; 2541 u16 fwcapa;
@@ -2549,7 +2549,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2549 if (!(fwcapa & B43_FWCAPA_HWCRYPTO) || dev->fw.pcm_request_failed) { 2549 if (!(fwcapa & B43_FWCAPA_HWCRYPTO) || dev->fw.pcm_request_failed) {
2550 b43info(dev->wl, "Hardware crypto acceleration not supported by firmware\n"); 2550 b43info(dev->wl, "Hardware crypto acceleration not supported by firmware\n");
2551 /* Disable hardware crypto and fall back to software crypto. */ 2551 /* Disable hardware crypto and fall back to software crypto. */
2552 dev->hwcrypto_enabled = 0; 2552 dev->hwcrypto_enabled = false;
2553 } 2553 }
2554 if (!(fwcapa & B43_FWCAPA_QOS)) { 2554 if (!(fwcapa & B43_FWCAPA_QOS)) {
2555 b43info(dev->wl, "QoS not supported by firmware\n"); 2555 b43info(dev->wl, "QoS not supported by firmware\n");
@@ -2557,7 +2557,7 @@ static int b43_upload_microcode(struct b43_wldev *dev)
2557 * ieee80211_unregister to make sure the networking core can 2557 * ieee80211_unregister to make sure the networking core can
2558 * properly free possible resources. */ 2558 * properly free possible resources. */
2559 dev->wl->hw->queues = 1; 2559 dev->wl->hw->queues = 1;
2560 dev->qos_enabled = 0; 2560 dev->qos_enabled = false;
2561 } 2561 }
2562 } else { 2562 } else {
2563 b43info(dev->wl, "Loading firmware version %u.%u " 2563 b43info(dev->wl, "Loading firmware version %u.%u "
@@ -3361,10 +3361,10 @@ static int b43_rng_init(struct b43_wl *wl)
3361 wl->rng.name = wl->rng_name; 3361 wl->rng.name = wl->rng_name;
3362 wl->rng.data_read = b43_rng_read; 3362 wl->rng.data_read = b43_rng_read;
3363 wl->rng.priv = (unsigned long)wl; 3363 wl->rng.priv = (unsigned long)wl;
3364 wl->rng_initialized = 1; 3364 wl->rng_initialized = true;
3365 err = hwrng_register(&wl->rng); 3365 err = hwrng_register(&wl->rng);
3366 if (err) { 3366 if (err) {
3367 wl->rng_initialized = 0; 3367 wl->rng_initialized = false;
3368 b43err(wl, "Failed to register the random " 3368 b43err(wl, "Failed to register the random "
3369 "number generator (%d)\n", err); 3369 "number generator (%d)\n", err);
3370 } 3370 }
@@ -3702,13 +3702,13 @@ static int b43_switch_band(struct b43_wl *wl, struct ieee80211_channel *chan)
3702 case IEEE80211_BAND_5GHZ: 3702 case IEEE80211_BAND_5GHZ:
3703 if (d->phy.supports_5ghz) { 3703 if (d->phy.supports_5ghz) {
3704 up_dev = d; 3704 up_dev = d;
3705 gmode = 0; 3705 gmode = false;
3706 } 3706 }
3707 break; 3707 break;
3708 case IEEE80211_BAND_2GHZ: 3708 case IEEE80211_BAND_2GHZ:
3709 if (d->phy.supports_2ghz) { 3709 if (d->phy.supports_2ghz) {
3710 up_dev = d; 3710 up_dev = d;
3711 gmode = 1; 3711 gmode = true;
3712 } 3712 }
3713 break; 3713 break;
3714 default: 3714 default:
@@ -4425,18 +4425,18 @@ static void setup_struct_phy_for_init(struct b43_wldev *dev,
4425 atomic_set(&phy->txerr_cnt, B43_PHY_TX_BADNESS_LIMIT); 4425 atomic_set(&phy->txerr_cnt, B43_PHY_TX_BADNESS_LIMIT);
4426 4426
4427#if B43_DEBUG 4427#if B43_DEBUG
4428 phy->phy_locked = 0; 4428 phy->phy_locked = false;
4429 phy->radio_locked = 0; 4429 phy->radio_locked = false;
4430#endif 4430#endif
4431} 4431}
4432 4432
4433static void setup_struct_wldev_for_init(struct b43_wldev *dev) 4433static void setup_struct_wldev_for_init(struct b43_wldev *dev)
4434{ 4434{
4435 dev->dfq_valid = 0; 4435 dev->dfq_valid = false;
4436 4436
4437 /* Assume the radio is enabled. If it's not enabled, the state will 4437 /* Assume the radio is enabled. If it's not enabled, the state will
4438 * immediately get fixed on the first periodic work run. */ 4438 * immediately get fixed on the first periodic work run. */
4439 dev->radio_hw_enable = 1; 4439 dev->radio_hw_enable = true;
4440 4440
4441 /* Stats */ 4441 /* Stats */
4442 memset(&dev->stats, 0, sizeof(dev->stats)); 4442 memset(&dev->stats, 0, sizeof(dev->stats));
@@ -4670,16 +4670,16 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
4670 4670
4671 if (b43_bus_host_is_pcmcia(dev->dev) || 4671 if (b43_bus_host_is_pcmcia(dev->dev) ||
4672 b43_bus_host_is_sdio(dev->dev)) { 4672 b43_bus_host_is_sdio(dev->dev)) {
4673 dev->__using_pio_transfers = 1; 4673 dev->__using_pio_transfers = true;
4674 err = b43_pio_init(dev); 4674 err = b43_pio_init(dev);
4675 } else if (dev->use_pio) { 4675 } else if (dev->use_pio) {
4676 b43warn(dev->wl, "Forced PIO by use_pio module parameter. " 4676 b43warn(dev->wl, "Forced PIO by use_pio module parameter. "
4677 "This should not be needed and will result in lower " 4677 "This should not be needed and will result in lower "
4678 "performance.\n"); 4678 "performance.\n");
4679 dev->__using_pio_transfers = 1; 4679 dev->__using_pio_transfers = true;
4680 err = b43_pio_init(dev); 4680 err = b43_pio_init(dev);
4681 } else { 4681 } else {
4682 dev->__using_pio_transfers = 0; 4682 dev->__using_pio_transfers = false;
4683 err = b43_dma_init(dev); 4683 err = b43_dma_init(dev);
4684 } 4684 }
4685 if (err) 4685 if (err)
@@ -4733,7 +4733,7 @@ static int b43_op_add_interface(struct ieee80211_hw *hw,
4733 b43dbg(wl, "Adding Interface type %d\n", vif->type); 4733 b43dbg(wl, "Adding Interface type %d\n", vif->type);
4734 4734
4735 dev = wl->current_dev; 4735 dev = wl->current_dev;
4736 wl->operating = 1; 4736 wl->operating = true;
4737 wl->vif = vif; 4737 wl->vif = vif;
4738 wl->if_type = vif->type; 4738 wl->if_type = vif->type;
4739 memcpy(wl->mac_addr, vif->addr, ETH_ALEN); 4739 memcpy(wl->mac_addr, vif->addr, ETH_ALEN);
@@ -4767,7 +4767,7 @@ static void b43_op_remove_interface(struct ieee80211_hw *hw,
4767 B43_WARN_ON(wl->vif != vif); 4767 B43_WARN_ON(wl->vif != vif);
4768 wl->vif = NULL; 4768 wl->vif = NULL;
4769 4769
4770 wl->operating = 0; 4770 wl->operating = false;
4771 4771
4772 b43_adjust_opmode(dev); 4772 b43_adjust_opmode(dev);
4773 memset(wl->mac_addr, 0, ETH_ALEN); 4773 memset(wl->mac_addr, 0, ETH_ALEN);
@@ -4789,12 +4789,12 @@ static int b43_op_start(struct ieee80211_hw *hw)
4789 memset(wl->bssid, 0, ETH_ALEN); 4789 memset(wl->bssid, 0, ETH_ALEN);
4790 memset(wl->mac_addr, 0, ETH_ALEN); 4790 memset(wl->mac_addr, 0, ETH_ALEN);
4791 wl->filter_flags = 0; 4791 wl->filter_flags = 0;
4792 wl->radiotap_enabled = 0; 4792 wl->radiotap_enabled = false;
4793 b43_qos_clear(wl); 4793 b43_qos_clear(wl);
4794 wl->beacon0_uploaded = 0; 4794 wl->beacon0_uploaded = false;
4795 wl->beacon1_uploaded = 0; 4795 wl->beacon1_uploaded = false;
4796 wl->beacon_templates_virgin = 1; 4796 wl->beacon_templates_virgin = true;
4797 wl->radio_enabled = 1; 4797 wl->radio_enabled = true;
4798 4798
4799 mutex_lock(&wl->mutex); 4799 mutex_lock(&wl->mutex);
4800 4800
@@ -4840,7 +4840,7 @@ static void b43_op_stop(struct ieee80211_hw *hw)
4840 goto out_unlock; 4840 goto out_unlock;
4841 } 4841 }
4842 b43_wireless_core_exit(dev); 4842 b43_wireless_core_exit(dev);
4843 wl->radio_enabled = 0; 4843 wl->radio_enabled = false;
4844 4844
4845out_unlock: 4845out_unlock:
4846 mutex_unlock(&wl->mutex); 4846 mutex_unlock(&wl->mutex);
@@ -5028,7 +5028,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5028 struct pci_dev *pdev = NULL; 5028 struct pci_dev *pdev = NULL;
5029 int err; 5029 int err;
5030 u32 tmp; 5030 u32 tmp;
5031 bool have_2ghz_phy = 0, have_5ghz_phy = 0; 5031 bool have_2ghz_phy = false, have_5ghz_phy = false;
5032 5032
5033 /* Do NOT do any device initialization here. 5033 /* Do NOT do any device initialization here.
5034 * Do it in wireless_core_init() instead. 5034 * Do it in wireless_core_init() instead.
@@ -5071,7 +5071,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5071 } 5071 }
5072 5072
5073 dev->phy.gmode = have_2ghz_phy; 5073 dev->phy.gmode = have_2ghz_phy;
5074 dev->phy.radio_on = 1; 5074 dev->phy.radio_on = true;
5075 b43_wireless_core_reset(dev, dev->phy.gmode); 5075 b43_wireless_core_reset(dev, dev->phy.gmode);
5076 5076
5077 err = b43_phy_versioning(dev); 5077 err = b43_phy_versioning(dev);
@@ -5082,11 +5082,11 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5082 (pdev->device != 0x4312 && 5082 (pdev->device != 0x4312 &&
5083 pdev->device != 0x4319 && pdev->device != 0x4324)) { 5083 pdev->device != 0x4319 && pdev->device != 0x4324)) {
5084 /* No multiband support. */ 5084 /* No multiband support. */
5085 have_2ghz_phy = 0; 5085 have_2ghz_phy = false;
5086 have_5ghz_phy = 0; 5086 have_5ghz_phy = false;
5087 switch (dev->phy.type) { 5087 switch (dev->phy.type) {
5088 case B43_PHYTYPE_A: 5088 case B43_PHYTYPE_A:
5089 have_5ghz_phy = 1; 5089 have_5ghz_phy = true;
5090 break; 5090 break;
5091 case B43_PHYTYPE_LP: //FIXME not always! 5091 case B43_PHYTYPE_LP: //FIXME not always!
5092#if 0 //FIXME enabling 5GHz causes a NULL pointer dereference 5092#if 0 //FIXME enabling 5GHz causes a NULL pointer dereference
@@ -5096,7 +5096,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5096 case B43_PHYTYPE_N: 5096 case B43_PHYTYPE_N:
5097 case B43_PHYTYPE_HT: 5097 case B43_PHYTYPE_HT:
5098 case B43_PHYTYPE_LCN: 5098 case B43_PHYTYPE_LCN:
5099 have_2ghz_phy = 1; 5099 have_2ghz_phy = true;
5100 break; 5100 break;
5101 default: 5101 default:
5102 B43_WARN_ON(1); 5102 B43_WARN_ON(1);
@@ -5112,8 +5112,8 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
5112 /* FIXME: For now we disable the A-PHY on multi-PHY devices. */ 5112 /* FIXME: For now we disable the A-PHY on multi-PHY devices. */
5113 if (dev->phy.type != B43_PHYTYPE_N && 5113 if (dev->phy.type != B43_PHYTYPE_N &&
5114 dev->phy.type != B43_PHYTYPE_LP) { 5114 dev->phy.type != B43_PHYTYPE_LP) {
5115 have_2ghz_phy = 1; 5115 have_2ghz_phy = true;
5116 have_5ghz_phy = 0; 5116 have_5ghz_phy = false;
5117 } 5117 }
5118 } 5118 }
5119 5119