Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/pci Add dummy scan_mindwell function same as i...



details:   https://anonhg.NetBSD.org/src-all/rev/fcb989448c8e
branches:  trunk
changeset: 376648:fcb989448c8e
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue Jun 27 22:36:49 2023 +1000

description:
Add dummy scan_mindwell function same as iwn(4).

diffstat:

 sys/dev/pci/if_iwm.c |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r ee95531f0bb0 -r fcb989448c8e sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Sun Jun 18 15:15:49 2023 +1000
+++ b/sys/dev/pci/if_iwm.c      Tue Jun 27 22:36:49 2023 +1000
@@ -330,6 +330,7 @@ static void iwm_scan_start(struct ieee80
 static void    iwm_scan_end(struct ieee80211com *);
 static void    iwm_set_channel(struct ieee80211com *);
 static void    iwm_scan_curchan(struct ieee80211_scan_state *, unsigned long);
+static void    iwm_scan_mindwell(struct ieee80211_scan_state *);
 static int     iwm_reset(struct ieee80211vap *, u_long);
 static int     iwm_transmit(struct ieee80211com *, struct mbuf *);
 static int     iwm_raw_xmit(struct ieee80211_node *, struct mbuf *,
@@ -8194,7 +8195,7 @@ iwm_config_complete(struct iwm_softc *sc
        ic->ic_scan_end = iwm_scan_end;
        ic->ic_set_channel = iwm_set_channel;
        ic->ic_scan_curchan = iwm_scan_curchan;
-//     ic->ic_scan_mindwell = iwm_scan_mindwell;
+       ic->ic_scan_mindwell = iwm_scan_mindwell;
        ic->ic_newassoc = iwm_newassoc;
        ic->ic_transmit = iwm_transmit;
        ic->ic_raw_xmit = iwm_raw_xmit;
@@ -8470,6 +8471,17 @@ iwm_scan_curchan(struct ieee80211_scan_s
 #endif
 }
 
+/*
+ * Callback from net80211 to handle the minimum dwell time being met.
+ * The intent is to terminate the scan but we just let the firmware
+ * notify us when it's finished as we have no safe way to abort it.
+ */
+static void
+iwm_scan_mindwell(struct ieee80211_scan_state *ss)
+{
+       /* NB: don't try to abort scan; wait for firmware to finish */
+}
+
 #if 0
 static void
 iwm_init_task(void *arg)



Home | Main Index | Thread Index | Old Index