aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/carl9170
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2012-01-13 10:35:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-01-24 14:21:12 -0500
commit6ae4bb6612c675d4132bd4fcc7cac4eef46f9624 (patch)
tree9e48046e52c143a30f9d12882512d8f50e0a3916 /drivers/net/wireless/ath/carl9170
parentf1249700f563b5dc541afa7e54a2d93fdffc1fb6 (diff)
carl9170: remove eeprom data injection option
In the early days, this was a quite useful software feature for testing different regdomains and chain configurations without adding debugfs cruft into the driver. Nowadays, the driver's phy code seems to be stable and there's no need for it anymore. Therefore I decided to removed altogether. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/carl9170')
-rw-r--r--drivers/net/wireless/ath/carl9170/carl9170.h1
-rw-r--r--drivers/net/wireless/ath/carl9170/fw.c33
-rw-r--r--drivers/net/wireless/ath/carl9170/main.c4
3 files changed, 0 insertions, 38 deletions
diff --git a/drivers/net/wireless/ath/carl9170/carl9170.h b/drivers/net/wireless/ath/carl9170/carl9170.h
index 6cfbb419e2f..f0f44c30b2f 100644
--- a/drivers/net/wireless/ath/carl9170/carl9170.h
+++ b/drivers/net/wireless/ath/carl9170/carl9170.h
@@ -593,7 +593,6 @@ int carl9170_get_noisefloor(struct ar9170 *ar);
593 593
594/* FW */ 594/* FW */
595int carl9170_parse_firmware(struct ar9170 *ar); 595int carl9170_parse_firmware(struct ar9170 *ar);
596int carl9170_fw_fix_eeprom(struct ar9170 *ar);
597 596
598extern struct ieee80211_rate __carl9170_ratetable[]; 597extern struct ieee80211_rate __carl9170_ratetable[];
599extern int modparam_noht; 598extern int modparam_noht;
diff --git a/drivers/net/wireless/ath/carl9170/fw.c b/drivers/net/wireless/ath/carl9170/fw.c
index 3de61adacd3..cffde8d9a52 100644
--- a/drivers/net/wireless/ath/carl9170/fw.c
+++ b/drivers/net/wireless/ath/carl9170/fw.c
@@ -389,39 +389,6 @@ carl9170_find_fw_desc(struct ar9170 *ar, const __u8 *fw_data, const size_t len)
389 return (void *)&fw_data[scan - found]; 389 return (void *)&fw_data[scan - found];
390} 390}
391 391
392int carl9170_fw_fix_eeprom(struct ar9170 *ar)
393{
394 const struct carl9170fw_fix_desc *fix_desc = NULL;
395 unsigned int i, n, off;
396 u32 *data = (void *)&ar->eeprom;
397
398 fix_desc = carl9170_fw_find_desc(ar, FIX_MAGIC,
399 sizeof(*fix_desc), CARL9170FW_FIX_DESC_CUR_VER);
400
401 if (!fix_desc)
402 return 0;
403
404 n = (le16_to_cpu(fix_desc->head.length) - sizeof(*fix_desc)) /
405 sizeof(struct carl9170fw_fix_entry);
406
407 for (i = 0; i < n; i++) {
408 off = le32_to_cpu(fix_desc->data[i].address) -
409 AR9170_EEPROM_START;
410
411 if (off >= sizeof(struct ar9170_eeprom) || (off & 3)) {
412 dev_err(&ar->udev->dev, "Skip invalid entry %d\n", i);
413 continue;
414 }
415
416 data[off / sizeof(*data)] &=
417 le32_to_cpu(fix_desc->data[i].mask);
418 data[off / sizeof(*data)] |=
419 le32_to_cpu(fix_desc->data[i].value);
420 }
421
422 return 0;
423}
424
425int carl9170_parse_firmware(struct ar9170 *ar) 392int carl9170_parse_firmware(struct ar9170 *ar)
426{ 393{
427 const struct carl9170fw_desc_head *fw_desc = NULL; 394 const struct carl9170fw_desc_head *fw_desc = NULL;
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c
index 4dfb0290b43..6ee7c55f75a 100644
--- a/drivers/net/wireless/ath/carl9170/main.c
+++ b/drivers/net/wireless/ath/carl9170/main.c
@@ -1934,10 +1934,6 @@ int carl9170_register(struct ar9170 *ar)
1934 if (err) 1934 if (err)
1935 return err; 1935 return err;
1936 1936
1937 err = carl9170_fw_fix_eeprom(ar);
1938 if (err)
1939 return err;
1940
1941 err = carl9170_parse_eeprom(ar); 1937 err = carl9170_parse_eeprom(ar);
1942 if (err) 1938 if (err)
1943 return err; 1939 return err;