Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix "ifconfig iwm0" failures reported by ryoon@n...



details:   https://anonhg.NetBSD.org/src/rev/e8a771fd52c4
branches:  trunk
changeset: 323302:e8a771fd52c4
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Jun 08 11:09:24 2018 +0000

description:
Fix "ifconfig iwm0" failures reported by ryoon@n.o. Advised nonaka@n.o and ozaki-r@n.o, thanks.

diffstat:

 sys/dev/pci/if_iwm.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r f3e0a9528ff3 -r e8a771fd52c4 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Fri Jun 08 04:24:12 2018 +0000
+++ b/sys/dev/pci/if_iwm.c      Fri Jun 08 11:09:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwm.c,v 1.80 2018/06/06 01:49:08 maya Exp $ */
+/*     $NetBSD: if_iwm.c,v 1.81 2018/06/08 11:09:24 knakahara Exp $    */
 /*     OpenBSD: if_iwm.c,v 1.148 2016/11/19 21:07:08 stsp Exp  */
 #define IEEE80211_NO_HT
 /*
@@ -106,7 +106,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.80 2018/06/06 01:49:08 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.81 2018/06/08 11:09:24 knakahara Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -7762,6 +7762,11 @@
                ic->ic_sup_rates[IEEE80211_MODE_11A] = ieee80211_std_rateset_11a;
 
        ether_ifdetach(ifp);
+       /*
+        * XXX
+        * ether_ifdetach() overwrites ifp->if_ioctl, so restore it here.
+        */
+       ifp->if_ioctl = iwm_ioctl;
        ieee80211_ifattach(ic);
 
        ic->ic_node_alloc = iwm_node_alloc;



Home | Main Index | Thread Index | Old Index