From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wopr.sciops.net ([216.126.196.60]) by ur; Thu Feb 16 06:47:25 EST 2017 Received: (qmail 91436 invoked by uid 1001); 16 Feb 2017 10:00:41 -0000 Date: Thu, 16 Feb 2017 02:00:41 -0800 From: Kurt H Maier To: 9front@9front.org Subject: intel 6235 card Message-ID: <20170216100041.GC77478@wopr> Mail-Followup-To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: structured reduce/map control Yo, cinap got my wifi working (hopefully that wpa.diff will be merged soon) but in the meantime it enabled me to test and get functioning another intel wifi chip. The thinkpad x250 comes with a 7265, which etheriwl.c does not support... but I found a card that DOES work with etheriwl.c and comes in an ngff package. It is the Intel Advanced-N 6235 wifi card, Lenovo part number 04W3798, and the following patch makes it work on 9front. There is probably a better way to do this, but this card appears to work exactly like the iwn-6005 cards... with a different firmware. So, I just check the did and shove the firmware in. I am not a programmer. khm a/sys/src/9/pc/etheriwl.c:2199,2205 - b/sys/src/9/pc/etheriwl.c:2199,2208 } if(ctlr->fw == nil){ - fw = readfirmware(fwname[ctlr->type]); + if (ctlr->pdev->did == 0x088f) + fw = readfirmware("iwn-6030"); + else + fw = readfirmware(fwname[ctlr->type]); print("#l%d: firmware: %s, rev %ux, build %ud, size %ux+%ux+%ux+%ux+%ux\n", edev->ctlrno, fwname[ctlr->type], a/sys/src/9/pc/etheriwl.c:2436,2441 - b/sys/src/9/pc/etheriwl.c:2439,2445 case 0x0085: /* Centrino Advanced-N 6205 */ case 0x422b: /* Centrino Ultimate-N 6300 variant 1 */ case 0x4238: /* Centrino Ultimate-N 6300 variant 2 */ + case 0x088f: /* Centrino Advanced-N 6235 */ case 0x08ae: /* Centrino Wireless-N 100 */ case 0x0083: /* Centrino Wireless-N 1000 */ case 0x0887: /* Centrino Wireless-N 2230 */