9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Kurt H Maier <khm@sciops.net>
To: 9front@9front.org
Subject: intel 6235 card
Date: Thu, 16 Feb 2017 02:00:41 -0800	[thread overview]
Message-ID: <20170216100041.GC77478@wopr> (raw)

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 */




             reply	other threads:[~2017-02-16 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-16 10:00 Kurt H Maier [this message]
2017-02-16 15:00 ` [9front] " cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170216100041.GC77478@wopr \
    --to=khm@sciops.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).