Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315597
b: refs/heads/master
c: 0196736
h: refs/heads/master
i:
  315595: ec17d0b
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jul 17, 2012
1 parent ff2e9eb commit 50167f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 433c3990a3595efe81e34a8c12ebf1746b94dc88
refs/heads/master: 01967360a20598f95947a86af26c930ab1b50205
14 changes: 12 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -3260,10 +3260,20 @@ static int ar9300_eeprom_restore_internal(struct ath_hw *ah,
int it;
u16 checksum, mchecksum;
struct ath_common *common = ath9k_hw_common(ah);
struct ar9300_eeprom *eep;
eeprom_read_op read;

if (ath9k_hw_use_flash(ah))
return ar9300_eeprom_restore_flash(ah, mptr, mdata_size);
if (ath9k_hw_use_flash(ah)) {
u8 txrx;

ar9300_eeprom_restore_flash(ah, mptr, mdata_size);

/* check if eeprom contains valid data */
eep = (struct ar9300_eeprom *) mptr;
txrx = eep->baseEepHeader.txrxMask;
if (txrx != 0 && txrx != 0xff)
return 0;
}

word = kzalloc(2048, GFP_KERNEL);
if (!word)
Expand Down

0 comments on commit 50167f2

Please sign in to comment.