Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlegacy: change some symbols duplicated from iwlwifi directory

drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x29f0): multiple definition of `iwl_rates'
drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0xa68): first defined here
powerpc64-linux-ld: Warning: size of symbol `iwl_rates' changed from 143 in drivers/net/wireless/iwlwifi/built-in.o to 130 in drivers/net/wireless/iwlegacy/built-in.o
drivers/net/wireless/iwlegacy/built-in.o:(.data+0x0): multiple definition of `bt_coex_active'
drivers/net/wireless/iwlwifi/built-in.o:(.data+0x668): first defined here
drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x750): multiple definition of `iwl_eeprom_band_1'
drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0x27d0): first defined here
drivers/net/wireless/iwlegacy/built-in.o:(.rodata+0x3f0): multiple definition of `iwl_bcast_addr'
drivers/net/wireless/iwlwifi/built-in.o:(.rodata+0x24f8): first defined here
drivers/net/wireless/iwlegacy/built-in.o:(.bss+0x3d48): multiple definition of `iwl_debug_level'
drivers/net/wireless/iwlwifi/built-in.o:(.bss+0x21950): first defined here

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

+71 -73
+2 -2
drivers/net/wireless/iwlegacy/iwl-4965-lib.c
··· 424 424 if (band == IEEE80211_BAND_5GHZ) 425 425 band_offset = IWL_FIRST_OFDM_RATE; 426 426 for (idx = band_offset; idx < IWL_RATE_COUNT_LEGACY; idx++) 427 - if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) 427 + if (iwlegacy_rates[idx].plcp == (rate_n_flags & 0xFF)) 428 428 return idx - band_offset; 429 429 } 430 430 ··· 995 995 /* use bcast addr, will not be transmitted but must be valid */ 996 996 cmd_len = iwl_legacy_fill_probe_req(priv, 997 997 (struct ieee80211_mgmt *)scan->data, 998 - iwl_bcast_addr, NULL, 0, 998 + iwlegacy_bcast_addr, NULL, 0, 999 999 IWL_MAX_SCAN_SIZE - sizeof(*scan)); 1000 1000 1001 1001 }
+10 -10
drivers/net/wireless/iwlegacy/iwl-4965-rs.c
··· 97 97 * maps to IWL_RATE_INVALID 98 98 * 99 99 */ 100 - const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT] = { 100 + const struct iwl_rate_info iwlegacy_rates[IWL_RATE_COUNT] = { 101 101 IWL_DECLARE_RATE_INFO(1, INV, INV, 2, INV, 2, INV, 2), /* 1mbps */ 102 102 IWL_DECLARE_RATE_INFO(2, INV, 1, 5, 1, 5, 1, 5), /* 2mbps */ 103 103 IWL_DECLARE_RATE_INFO(5, INV, 2, 6, 2, 11, 2, 11), /*5.5mbps */ ··· 133 133 134 134 /* legacy rate format, search for match in table */ 135 135 } else { 136 - for (idx = 0; idx < ARRAY_SIZE(iwl_rates); idx++) 137 - if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) 136 + for (idx = 0; idx < ARRAY_SIZE(iwlegacy_rates); idx++) 137 + if (iwlegacy_rates[idx].plcp == (rate_n_flags & 0xFF)) 138 138 return idx; 139 139 } 140 140 ··· 500 500 u32 rate_n_flags = 0; 501 501 502 502 if (is_legacy(tbl->lq_type)) { 503 - rate_n_flags = iwl_rates[index].plcp; 503 + rate_n_flags = iwlegacy_rates[index].plcp; 504 504 if (index >= IWL_FIRST_CCK_RATE && index <= IWL_LAST_CCK_RATE) 505 505 rate_n_flags |= RATE_MCS_CCK_MSK; 506 506 ··· 512 512 rate_n_flags = RATE_MCS_HT_MSK; 513 513 514 514 if (is_siso(tbl->lq_type)) 515 - rate_n_flags |= iwl_rates[index].plcp_siso; 515 + rate_n_flags |= iwlegacy_rates[index].plcp_siso; 516 516 else 517 - rate_n_flags |= iwl_rates[index].plcp_mimo2; 517 + rate_n_flags |= iwlegacy_rates[index].plcp_mimo2; 518 518 } else { 519 519 IWL_ERR(priv, "Invalid tbl->lq_type %d\n", tbl->lq_type); 520 520 } ··· 703 703 704 704 low = index; 705 705 while (low != IWL_RATE_INVALID) { 706 - low = iwl_rates[low].prev_rs; 706 + low = iwlegacy_rates[low].prev_rs; 707 707 if (low == IWL_RATE_INVALID) 708 708 break; 709 709 if (rate_mask & (1 << low)) ··· 713 713 714 714 high = index; 715 715 while (high != IWL_RATE_INVALID) { 716 - high = iwl_rates[high].next_rs; 716 + high = iwlegacy_rates[high].next_rs; 717 717 if (high == IWL_RATE_INVALID) 718 718 break; 719 719 if (rate_mask & (1 << high)) ··· 2221 2221 if ((i < 0) || (i >= IWL_RATE_COUNT)) 2222 2222 i = 0; 2223 2223 2224 - rate = iwl_rates[i].plcp; 2224 + rate = iwlegacy_rates[i].plcp; 2225 2225 tbl->ant_type = iwl4965_first_antenna(valid_tx_ant); 2226 2226 rate |= tbl->ant_type << RATE_MCS_ANT_POS; 2227 2227 ··· 2791 2791 else 2792 2792 desc += sprintf(buff+desc, 2793 2793 "Bit Rate= %d Mb/s\n", 2794 - iwl_rates[lq_sta->last_txrate_idx].ieee >> 1); 2794 + iwlegacy_rates[lq_sta->last_txrate_idx].ieee >> 1); 2795 2795 2796 2796 ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); 2797 2797 return ret;
+3 -2
drivers/net/wireless/iwlegacy/iwl-4965-sta.c
··· 59 59 60 60 rate_flags |= iwl4965_first_antenna(priv->hw_params.valid_tx_ant) << 61 61 RATE_MCS_ANT_POS; 62 - rate_n_flags = iwl4965_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); 62 + rate_n_flags = iwl4965_hw_set_rate_n_flags(iwlegacy_rates[r].plcp, 63 + rate_flags); 63 64 for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) 64 65 link_cmd->rs_table[i].rate_n_flags = rate_n_flags; 65 66 ··· 554 553 u8 sta_id; 555 554 556 555 spin_lock_irqsave(&priv->sta_lock, flags); 557 - sta_id = iwl_legacy_prep_station(priv, ctx, iwl_bcast_addr, 556 + sta_id = iwl_legacy_prep_station(priv, ctx, iwlegacy_bcast_addr, 558 557 false, NULL); 559 558 if (sta_id == IWL_INVALID_STATION) { 560 559 IWL_ERR(priv, "Unable to prepare broadcast station\n");
+1 -1
drivers/net/wireless/iwlegacy/iwl-4965-tx.c
··· 203 203 if (info->band == IEEE80211_BAND_5GHZ) 204 204 rate_idx += IWL_FIRST_OFDM_RATE; 205 205 /* Get PLCP rate for tx_cmd->rate_n_flags */ 206 - rate_plcp = iwl_rates[rate_idx].plcp; 206 + rate_plcp = iwlegacy_rates[rate_idx].plcp; 207 207 /* Zero out flags for this packet */ 208 208 rate_flags = 0; 209 209
+10 -11
drivers/net/wireless/iwlegacy/iwl-core.c
··· 64 64 * 65 65 * default: bt_coex_active = true (BT_COEX_ENABLE) 66 66 */ 67 - bool bt_coex_active = true; 68 - EXPORT_SYMBOL_GPL(bt_coex_active); 67 + static bool bt_coex_active = true; 69 68 module_param(bt_coex_active, bool, S_IRUGO); 70 69 MODULE_PARM_DESC(bt_coex_active, "enable wifi/bluetooth co-exist"); 71 70 72 - u32 iwl_debug_level; 73 - EXPORT_SYMBOL(iwl_debug_level); 71 + u32 iwlegacy_debug_level; 72 + EXPORT_SYMBOL(iwlegacy_debug_level); 74 73 75 - const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; 76 - EXPORT_SYMBOL(iwl_bcast_addr); 74 + const u8 iwlegacy_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; 75 + EXPORT_SYMBOL(iwlegacy_bcast_addr); 77 76 78 77 79 78 /* This function both allocates and initializes hw and priv. */ ··· 182 183 183 184 /* 5.2GHz channels start after the 2.4GHz channels */ 184 185 sband = &priv->bands[IEEE80211_BAND_5GHZ]; 185 - sband->channels = &channels[ARRAY_SIZE(iwl_eeprom_band_1)]; 186 + sband->channels = &channels[ARRAY_SIZE(iwlegacy_eeprom_band_1)]; 186 187 /* just OFDM */ 187 188 sband->bitrates = &rates[IWL_FIRST_OFDM_RATE]; 188 189 sband->n_bitrates = IWL_RATE_COUNT_LEGACY - IWL_FIRST_OFDM_RATE; ··· 1488 1489 { 1489 1490 u32 traffic_size = IWL_TRAFFIC_DUMP_SIZE; 1490 1491 1491 - if (iwl_debug_level & IWL_DL_TX) { 1492 + if (iwlegacy_debug_level & IWL_DL_TX) { 1492 1493 if (!priv->tx_traffic) { 1493 1494 priv->tx_traffic = 1494 1495 kzalloc(traffic_size, GFP_KERNEL); ··· 1496 1497 return -ENOMEM; 1497 1498 } 1498 1499 } 1499 - if (iwl_debug_level & IWL_DL_RX) { 1500 + if (iwlegacy_debug_level & IWL_DL_RX) { 1500 1501 if (!priv->rx_traffic) { 1501 1502 priv->rx_traffic = 1502 1503 kzalloc(traffic_size, GFP_KERNEL); ··· 1525 1526 __le16 fc; 1526 1527 u16 len; 1527 1528 1528 - if (likely(!(iwl_debug_level & IWL_DL_TX))) 1529 + if (likely(!(iwlegacy_debug_level & IWL_DL_TX))) 1529 1530 return; 1530 1531 1531 1532 if (!priv->tx_traffic) ··· 1550 1551 __le16 fc; 1551 1552 u16 len; 1552 1553 1553 - if (likely(!(iwl_debug_level & IWL_DL_RX))) 1554 + if (likely(!(iwlegacy_debug_level & IWL_DL_RX))) 1554 1555 return; 1555 1556 1556 1557 if (!priv->rx_traffic)
-2
drivers/net/wireless/iwlegacy/iwl-core.h
··· 628 628 return priv->hw->wiphy->bands[band]; 629 629 } 630 630 631 - extern bool bt_coex_active; 632 - 633 631 /* mac80211 handlers */ 634 632 int iwl_legacy_mac_config(struct ieee80211_hw *hw, u32 changed); 635 633 void iwl_legacy_mac_reset_tsf(struct ieee80211_hw *hw);
+1 -1
drivers/net/wireless/iwlegacy/iwl-debug.h
··· 30 30 #define __iwl_legacy_debug_h__ 31 31 32 32 struct iwl_priv; 33 - extern u32 iwl_debug_level; 33 + extern u32 iwlegacy_debug_level; 34 34 35 35 #define IWL_ERR(p, f, a...) dev_err(&((p)->pci_dev->dev), f, ## a) 36 36 #define IWL_WARN(p, f, a...) dev_warn(&((p)->pci_dev->dev), f, ## a)
+2 -2
drivers/net/wireless/iwlegacy/iwl-debugfs.c
··· 748 748 "q[%d]: read_ptr: %u, write_ptr: %u\n", 749 749 cnt, q->read_ptr, q->write_ptr); 750 750 } 751 - if (priv->tx_traffic && (iwl_debug_level & IWL_DL_TX)) { 751 + if (priv->tx_traffic && (iwlegacy_debug_level & IWL_DL_TX)) { 752 752 ptr = priv->tx_traffic; 753 753 pos += scnprintf(buf + pos, bufsz - pos, 754 754 "Tx Traffic idx: %u\n", priv->tx_traffic_idx); ··· 771 771 "read: %u, write: %u\n", 772 772 rxq->read, rxq->write); 773 773 774 - if (priv->rx_traffic && (iwl_debug_level & IWL_DL_RX)) { 774 + if (priv->rx_traffic && (iwlegacy_debug_level & IWL_DL_RX)) { 775 775 ptr = priv->rx_traffic; 776 776 pos += scnprintf(buf + pos, bufsz - pos, 777 777 "Rx Traffic idx: %u\n", priv->rx_traffic_idx);
+4 -4
drivers/net/wireless/iwlegacy/iwl-dev.h
··· 624 624 * 625 625 ****************************************************************************/ 626 626 extern void iwl4965_update_chain_flags(struct iwl_priv *priv); 627 - extern const u8 iwl_bcast_addr[ETH_ALEN]; 627 + extern const u8 iwlegacy_bcast_addr[ETH_ALEN]; 628 628 extern int iwl_legacy_queue_space(const struct iwl_queue *q); 629 629 static inline int iwl_legacy_queue_used(const struct iwl_queue *q, int i) 630 630 { ··· 1285 1285 #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 1286 1286 /* debugging info */ 1287 1287 u32 debug_level; /* per device debugging will override global 1288 - iwl_debug_level if set */ 1288 + iwlegacy_debug_level if set */ 1289 1289 #endif /* CONFIG_IWLWIFI_LEGACY_DEBUG */ 1290 1290 #ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS 1291 1291 /* debugfs */ ··· 1338 1338 if (priv->debug_level) 1339 1339 return priv->debug_level; 1340 1340 else 1341 - return iwl_debug_level; 1341 + return iwlegacy_debug_level; 1342 1342 } 1343 1343 #else 1344 1344 static inline u32 iwl_legacy_get_debug_level(struct iwl_priv *priv) 1345 1345 { 1346 - return iwl_debug_level; 1346 + return iwlegacy_debug_level; 1347 1347 } 1348 1348 #endif 1349 1349
+27 -27
drivers/net/wireless/iwlegacy/iwl-eeprom.c
··· 77 77 78 78 /************************** EEPROM BANDS **************************** 79 79 * 80 - * The iwl_eeprom_band definitions below provide the mapping from the 80 + * The iwlegacy_eeprom_band definitions below provide the mapping from the 81 81 * EEPROM contents to the specific channel number supported for each 82 82 * band. 83 83 * ··· 107 107 *********************************************************************/ 108 108 109 109 /* 2.4 GHz */ 110 - const u8 iwl_eeprom_band_1[14] = { 110 + const u8 iwlegacy_eeprom_band_1[14] = { 111 111 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 112 112 }; 113 113 114 114 /* 5.2 GHz bands */ 115 - static const u8 iwl_eeprom_band_2[] = { /* 4915-5080MHz */ 115 + static const u8 iwlegacy_eeprom_band_2[] = { /* 4915-5080MHz */ 116 116 183, 184, 185, 187, 188, 189, 192, 196, 7, 8, 11, 12, 16 117 117 }; 118 118 119 - static const u8 iwl_eeprom_band_3[] = { /* 5170-5320MHz */ 119 + static const u8 iwlegacy_eeprom_band_3[] = { /* 5170-5320MHz */ 120 120 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 121 121 }; 122 122 123 - static const u8 iwl_eeprom_band_4[] = { /* 5500-5700MHz */ 123 + static const u8 iwlegacy_eeprom_band_4[] = { /* 5500-5700MHz */ 124 124 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 125 125 }; 126 126 127 - static const u8 iwl_eeprom_band_5[] = { /* 5725-5825MHz */ 127 + static const u8 iwlegacy_eeprom_band_5[] = { /* 5725-5825MHz */ 128 128 145, 149, 153, 157, 161, 165 129 129 }; 130 130 131 - static const u8 iwl_eeprom_band_6[] = { /* 2.4 ht40 channel */ 131 + static const u8 iwlegacy_eeprom_band_6[] = { /* 2.4 ht40 channel */ 132 132 1, 2, 3, 4, 5, 6, 7 133 133 }; 134 134 135 - static const u8 iwl_eeprom_band_7[] = { /* 5.2 ht40 channel */ 135 + static const u8 iwlegacy_eeprom_band_7[] = { /* 5.2 ht40 channel */ 136 136 36, 44, 52, 60, 100, 108, 116, 124, 132, 149, 157 137 137 }; 138 138 ··· 273 273 eeprom_ops.regulatory_bands[eep_band - 1]; 274 274 switch (eep_band) { 275 275 case 1: /* 2.4GHz band */ 276 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_1); 276 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_1); 277 277 *eeprom_ch_info = (struct iwl_eeprom_channel *) 278 278 iwl_legacy_eeprom_query_addr(priv, offset); 279 - *eeprom_ch_index = iwl_eeprom_band_1; 279 + *eeprom_ch_index = iwlegacy_eeprom_band_1; 280 280 break; 281 281 case 2: /* 4.9GHz band */ 282 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_2); 282 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_2); 283 283 *eeprom_ch_info = (struct iwl_eeprom_channel *) 284 284 iwl_legacy_eeprom_query_addr(priv, offset); 285 - *eeprom_ch_index = iwl_eeprom_band_2; 285 + *eeprom_ch_index = iwlegacy_eeprom_band_2; 286 286 break; 287 287 case 3: /* 5.2GHz band */ 288 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_3); 288 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_3); 289 289 *eeprom_ch_info = (struct iwl_eeprom_channel *) 290 290 iwl_legacy_eeprom_query_addr(priv, offset); 291 - *eeprom_ch_index = iwl_eeprom_band_3; 291 + *eeprom_ch_index = iwlegacy_eeprom_band_3; 292 292 break; 293 293 case 4: /* 5.5GHz band */ 294 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_4); 294 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_4); 295 295 *eeprom_ch_info = (struct iwl_eeprom_channel *) 296 296 iwl_legacy_eeprom_query_addr(priv, offset); 297 - *eeprom_ch_index = iwl_eeprom_band_4; 297 + *eeprom_ch_index = iwlegacy_eeprom_band_4; 298 298 break; 299 299 case 5: /* 5.7GHz band */ 300 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_5); 300 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_5); 301 301 *eeprom_ch_info = (struct iwl_eeprom_channel *) 302 302 iwl_legacy_eeprom_query_addr(priv, offset); 303 - *eeprom_ch_index = iwl_eeprom_band_5; 303 + *eeprom_ch_index = iwlegacy_eeprom_band_5; 304 304 break; 305 305 case 6: /* 2.4GHz ht40 channels */ 306 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_6); 306 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_6); 307 307 *eeprom_ch_info = (struct iwl_eeprom_channel *) 308 308 iwl_legacy_eeprom_query_addr(priv, offset); 309 - *eeprom_ch_index = iwl_eeprom_band_6; 309 + *eeprom_ch_index = iwlegacy_eeprom_band_6; 310 310 break; 311 311 case 7: /* 5 GHz ht40 channels */ 312 - *eeprom_ch_count = ARRAY_SIZE(iwl_eeprom_band_7); 312 + *eeprom_ch_count = ARRAY_SIZE(iwlegacy_eeprom_band_7); 313 313 *eeprom_ch_info = (struct iwl_eeprom_channel *) 314 314 iwl_legacy_eeprom_query_addr(priv, offset); 315 - *eeprom_ch_index = iwl_eeprom_band_7; 315 + *eeprom_ch_index = iwlegacy_eeprom_band_7; 316 316 break; 317 317 default: 318 318 BUG(); ··· 388 388 IWL_DEBUG_EEPROM(priv, "Initializing regulatory info from EEPROM\n"); 389 389 390 390 priv->channel_count = 391 - ARRAY_SIZE(iwl_eeprom_band_1) + 392 - ARRAY_SIZE(iwl_eeprom_band_2) + 393 - ARRAY_SIZE(iwl_eeprom_band_3) + 394 - ARRAY_SIZE(iwl_eeprom_band_4) + 395 - ARRAY_SIZE(iwl_eeprom_band_5); 391 + ARRAY_SIZE(iwlegacy_eeprom_band_1) + 392 + ARRAY_SIZE(iwlegacy_eeprom_band_2) + 393 + ARRAY_SIZE(iwlegacy_eeprom_band_3) + 394 + ARRAY_SIZE(iwlegacy_eeprom_band_4) + 395 + ARRAY_SIZE(iwlegacy_eeprom_band_5); 396 396 397 397 IWL_DEBUG_EEPROM(priv, "Parsing data for %d channels.\n", 398 398 priv->channel_count);
+1 -1
drivers/net/wireless/iwlegacy/iwl-eeprom.h
··· 144 144 #define EEPROM_4965_BOARD_PBA (2*0x56+1) /* 9 bytes */ 145 145 146 146 /* 2.4 GHz */ 147 - extern const u8 iwl_eeprom_band_1[14]; 147 + extern const u8 iwlegacy_eeprom_band_1[14]; 148 148 149 149 /* 150 150 * factory calibration data for one txpower level, on one channel,
+2 -2
drivers/net/wireless/iwlegacy/iwl-legacy-rs.h
··· 56 56 57 57 /* 58 58 * These serve as indexes into 59 - * struct iwl_rate_info iwl_rates[IWL_RATE_COUNT]; 59 + * struct iwl_rate_info iwlegacy_rates[IWL_RATE_COUNT]; 60 60 */ 61 61 enum { 62 62 IWL_RATE_1M_INDEX = 0, ··· 268 268 #define TID_MAX_TIME_DIFF ((TID_QUEUE_MAX_SIZE - 1) * TID_QUEUE_CELL_SPACING) 269 269 #define TIME_WRAP_AROUND(x, y) (((y) > (x)) ? (y) - (x) : (0-(x)) + (y)) 270 270 271 - extern const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT]; 271 + extern const struct iwl_rate_info iwlegacy_rates[IWL_RATE_COUNT]; 272 272 273 273 enum iwl_table_type { 274 274 LQ_NONE,
+2 -2
drivers/net/wireless/iwlegacy/iwl-scan.c
··· 492 492 return 0; 493 493 494 494 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); 495 - memcpy(frame->da, iwl_bcast_addr, ETH_ALEN); 495 + memcpy(frame->da, iwlegacy_bcast_addr, ETH_ALEN); 496 496 memcpy(frame->sa, ta, ETH_ALEN); 497 - memcpy(frame->bssid, iwl_bcast_addr, ETH_ALEN); 497 + memcpy(frame->bssid, iwlegacy_bcast_addr, ETH_ALEN); 498 498 frame->seq_ctrl = 0; 499 499 500 500 len += 24;
+3 -3
drivers/net/wireless/iwlegacy/iwl3945-base.c
··· 2630 2630 2631 2631 spin_lock_irqsave(&priv->sta_lock, flags); 2632 2632 sta_id = iwl_legacy_prep_station(priv, ctx, 2633 - iwl_bcast_addr, false, NULL); 2633 + iwlegacy_bcast_addr, false, NULL); 2634 2634 if (sta_id == IWL_INVALID_STATION) { 2635 2635 IWL_ERR(priv, "Unable to prepare broadcast station\n"); 2636 2636 spin_unlock_irqrestore(&priv->sta_lock, flags); ··· 2929 2929 scan->tx_cmd.len = cpu_to_le16( 2930 2930 iwl_legacy_fill_probe_req(priv, 2931 2931 (struct ieee80211_mgmt *)scan->data, 2932 - iwl_bcast_addr, NULL, 0, 2932 + iwlegacy_bcast_addr, NULL, 0, 2933 2933 IWL_MAX_SCAN_SIZE - sizeof(*scan))); 2934 2934 } 2935 2935 /* select Rx antennas */ ··· 4283 4283 MODULE_PARM_DESC(disable_hw_scan, 4284 4284 "disable hardware scanning (default 0) (deprecated)"); 4285 4285 #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 4286 - module_param_named(debug, iwl_debug_level, uint, S_IRUGO | S_IWUSR); 4286 + module_param_named(debug, iwlegacy_debug_level, uint, S_IRUGO | S_IWUSR); 4287 4287 MODULE_PARM_DESC(debug, "debug output mask"); 4288 4288 #endif 4289 4289 module_param_named(fw_restart, iwl3945_mod_params.restart_fw, int, S_IRUGO);
+3 -3
drivers/net/wireless/iwlegacy/iwl4965-base.c
··· 3057 3057 int i; 3058 3058 3059 3059 for (i = 0; i < IWL_RATE_COUNT_LEGACY; i++) { 3060 - rates[i].bitrate = iwl_rates[i].ieee * 5; 3060 + rates[i].bitrate = iwlegacy_rates[i].ieee * 5; 3061 3061 rates[i].hw_value = i; /* Rate scaling will work on indexes */ 3062 3062 rates[i].hw_value_short = i; 3063 3063 rates[i].flags = 0; ··· 3066 3066 * If CCK != 1M then set short preamble rate flag. 3067 3067 */ 3068 3068 rates[i].flags |= 3069 - (iwl_rates[i].plcp == IWL_RATE_1M_PLCP) ? 3069 + (iwlegacy_rates[i].plcp == IWL_RATE_1M_PLCP) ? 3070 3070 0 : IEEE80211_RATE_SHORT_PREAMBLE; 3071 3071 } 3072 3072 } ··· 3615 3615 module_init(iwl4965_init); 3616 3616 3617 3617 #ifdef CONFIG_IWLWIFI_LEGACY_DEBUG 3618 - module_param_named(debug, iwl_debug_level, uint, S_IRUGO | S_IWUSR); 3618 + module_param_named(debug, iwlegacy_debug_level, uint, S_IRUGO | S_IWUSR); 3619 3619 MODULE_PARM_DESC(debug, "debug output mask"); 3620 3620 #endif 3621 3621