NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51797: iwm(4) does not work after if_iwm.c rev. 1.45



The following reply was made to PR kern/51797; it has been noted by GNATS.

From: Kimihiro Nonaka <nonakap%gmail.com@localhost>
To: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
Cc: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>
Subject: Re: kern/51797: iwm(4) does not work after if_iwm.c rev. 1.45
Date: Fri, 20 Jan 2017 18:40:04 +0900

 --001a1149cdae4739d10546836f4b
 Content-Type: text/plain; charset=UTF-8
 
 2017-01-20 10:46 GMT+09:00 Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>:
 
 > With run(4) device, Planex GW-US300MiniS, same config file works fine.
 >
 > $ sudo wpa_supplicant -dd -i run0 -c /opt/share/wpa_supplicant-xperia.conf
 >
 > I believe that my passphrase in config file is correct.
 
 Hmm.
 
 Could you try the attached patch.
 
 Regards,
 -- 
 Kimihiro Nonaka
 
 --001a1149cdae4739d10546836f4b
 Content-Type: text/plain; charset=US-ASCII; name="if_iwm.c.diff"
 Content-Disposition: attachment; filename="if_iwm.c.diff"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_iy5m6nwr0
 
 ZGlmZiAtLWdpdCBhL3N5cy9kZXYvcGNpL2lmX2l3bS5jIGIvc3lzL2Rldi9wY2kvaWZfaXdtLmMK
 aW5kZXggZTI4OWJlYzQ2MjguLjE3YjlhZDMwODkxIDEwMDY0NAotLS0gYS9zeXMvZGV2L3BjaS9p
 Zl9pd20uYworKysgYi9zeXMvZGV2L3BjaS9pZl9pd20uYwpAQCAtMTI1LDcgKzEyNSw3IEBAIF9f
 S0VSTkVMX1JDU0lEKDAsICIkTmV0QlNEOiBpZl9pd20uYyx2IDEuNjUgMjAxNy8wMS8xOSAxMToy
 NDowNSBub25ha2EgRXhwICQiKTsKICNpbmNsdWRlIDxzeXMvYnVzLmg+CiAj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