ref: 9f2e627ec683f3d6654da6c0ec04790fe226f395
parent: c0fada1560792b0177554888976cf17912b034fc
author: ftrvxmtrx <devnull@localhost>
date: Sun Apr 27 11:12:15 EDT 2014
iwl: support another (broken) variant of centrino ultimate-n 6300
--- a/sys/src/9/pc/etheriwl.c
+++ b/sys/src/9/pc/etheriwl.c
@@ -1309,7 +1309,8 @@
c[3] = 1; /* isvalid */
c[4] = ctlr->eeprom.crystal;
c[5] = ctlr->eeprom.crystal>>16;
- if((err = cmd(ctlr, 176, c, 8)) != nil)
+ /* for some reason 8086:4238 needs a second try */
+ if(cmd(ctlr, 176, c, 8) != nil && (err = cmd(ctlr, 176, c, 8)) != nil)
return err;
}
@@ -2303,7 +2304,8 @@
case 0x4237: /* Wifi Link 5100 AGN */
case 0x423d: /* Wifi Link 5150 */
case 0x0085: /* Centrino Advanced-N 6205 */
- case 0x422b: /* Centrino Ultimate-N 6300 */
+ case 0x422b: /* Centrino Ultimate-N 6300 variant 1 */
+ case 0x4238: /* Centrino Ultimate-N 6300 variant 2 */
case 0x08ae: /* Centrino Wireless-N 100 */
break;
}