NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/49663: iwm(4) error with PCI_PRODUCT_INTEL_WIFI_LINK_7260_1
The following reply was made to PR kern/49663; it has been noted by GNATS.
From: NONAKA Kimihiro <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/49663: iwm(4) error with PCI_PRODUCT_INTEL_WIFI_LINK_7260_1
Date: Sat, 21 Feb 2015 17:27:25 +0900
--089e0116048e611710050f94f0b1
Content-Type: text/plain; charset=ISO-8859-1
Hi,
2015-02-21 9:06 GMT+09:00 Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>:
> And with following patch for OpenBSD,
> iwm(4) under OpenBSD became not to work at all,
> MAC address is all zero, and iwm(4) does not report WiFi connection
> as active.
Hmm.
I write MSI interrupt preliminary support via pci_intr(9) API.
Please try the attached patch.
Regards,
--
NONAKA Kimihiro
--089e0116048e611710050f94f0b1
Content-Type: text/plain; charset=US-ASCII; name="x86-msi.diff"
Content-Disposition: attachment; filename="x86-msi.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_i6eqr82h0
SW5kZXg6IHN5cy9hcmNoL3g4Ni9pbmNsdWRlL3BpYy5oCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9j
dnNyb290L3NyYy9zeXMvYXJjaC94ODYvaW5jbHVkZS9waWMuaCx2CnJldHJpZXZpbmcgcmV2aXNp
b24gMS43CmRpZmYgLXUgLXIxLjcgcGljLmgKLS0tIHN5cy9hcmNoL3g4Ni9pbmNsdWRlL3BpYy5o
CTE5IEFwciAyMDA5IDE0OjExOjM3IC0wMDAwCTEuNworKysgc3lzL2FyY2gveDg2L2luY2x1ZGUv
cGljLmgJMjEgRmViIDIw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