The iwm_get_active_dwell() and iwm_get_passive_dwell() functions are unused, and where removed in Linux iwlwifi git commit 9437e9941025bc83d3dd43f2927019149029f667.
Index: sys/dev/pci/if_iwm.c =================================================================== RCS file: /cvs/src/sys/dev/pci/if_iwm.c,v retrieving revision 1.156 diff -u -r1.156 if_iwm.c --- sys/dev/pci/if_iwm.c 12 Jan 2017 18:06:57 -0000 1.156 +++ sys/dev/pci/if_iwm.c 16 Jan 2017 16:42:56 -0000 @@ -409,8 +409,6 @@ int iwm_add_aux_sta(struct iwm_softc *); uint16_t iwm_scan_rx_chain(struct iwm_softc *); uint32_t iwm_scan_rate_n_flags(struct iwm_softc *, int, int); -uint16_t iwm_get_active_dwell(struct iwm_softc *, int, int); -uint16_t iwm_get_passive_dwell(struct iwm_softc *, int); uint8_t iwm_lmac_scan_fill_channels(struct iwm_softc *, struct iwm_scan_channel_cfg_lmac *, int); int iwm_fill_probe_req(struct iwm_softc *, struct iwm_scan_probe_req *); @@ -4459,12 +4457,6 @@ return err; } -#define IWM_PLCP_QUIET_THRESH 1 -#define IWM_ACTIVE_QUIET_TIME 10 -#define LONG_OUT_TIME_PERIOD 600 -#define SHORT_OUT_TIME_PERIOD 200 -#define SUSPEND_TIME_PERIOD 100 - uint16_t iwm_scan_rx_chain(struct iwm_softc *sc) { @@ -4500,30 +4492,6 @@ tx_ant); else return htole32(IWM_RATE_6M_PLCP | tx_ant); -} - -/* - * If req->n_ssids > 0, it means we should do an active scan. - * In case of active scan w/o directed scan, we receive a zero-length SSID - * just to notify that this scan is active and not passive. - * In order to notify the FW of the number of SSIDs we wish to scan (including - * the zero-length one), we need to set the corresponding bits in chan->type, - * one for each SSID, and set the active bit (first). If the first SSID is - * already included in the probe template, so we need to set only - * req->n_ssids - 1 bits in addition to the first bit. - */ -uint16_t -iwm_get_active_dwell(struct iwm_softc *sc, int flags, int n_ssids) -{ - if (flags & IEEE80211_CHAN_2GHZ) - return 30 + 3 * (n_ssids + 1); - return 20 + 2 * (n_ssids + 1); -} - -uint16_t -iwm_get_passive_dwell(struct iwm_softc *sc, int flags) -{ - return (flags & IEEE80211_CHAN_2GHZ) ? 100 + 20 : 100 + 10; } uint8_t