if_iwm_util.c (330191) | if_iwm_util.c (330202) |
---|---|
1/* $OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $ */ 2 3/* 4 * Copyright (c) 2014 genua mbh <info@genua.de> 5 * Copyright (c) 2014 Fixup Software Ltd. 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above --- 89 unchanged lines hidden (view full) --- 98 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 99 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 100 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 101 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 102 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 103 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 104 */ 105#include <sys/cdefs.h> | 1/* $OpenBSD: if_iwm.c,v 1.39 2015/03/23 00:35:19 jsg Exp $ */ 2 3/* 4 * Copyright (c) 2014 genua mbh <info@genua.de> 5 * Copyright (c) 2014 Fixup Software Ltd. 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above --- 89 unchanged lines hidden (view full) --- 98 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 99 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 100 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 101 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 102 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 103 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 104 */ 105#include <sys/cdefs.h> |
106__FBSDID("$FreeBSD: stable/11/sys/dev/iwm/if_iwm_util.c 330191 2018-03-01 06:20:16Z eadler $"); | 106__FBSDID("$FreeBSD: stable/11/sys/dev/iwm/if_iwm_util.c 330202 2018-03-01 06:34:48Z eadler $"); |
107 108#include "opt_wlan.h" 109 110#include <sys/param.h> 111#include <sys/bus.h> 112#include <sys/conf.h> 113#include <sys/endian.h> 114#include <sys/firmware.h> --- 32 unchanged lines hidden (view full) --- 147 148#include <net80211/ieee80211_var.h> 149#include <net80211/ieee80211_regdomain.h> 150#include <net80211/ieee80211_ratectl.h> 151#include <net80211/ieee80211_radiotap.h> 152 153#include <dev/iwm/if_iwmreg.h> 154#include <dev/iwm/if_iwmvar.h> | 107 108#include "opt_wlan.h" 109 110#include <sys/param.h> 111#include <sys/bus.h> 112#include <sys/conf.h> 113#include <sys/endian.h> 114#include <sys/firmware.h> --- 32 unchanged lines hidden (view full) --- 147 148#include <net80211/ieee80211_var.h> 149#include <net80211/ieee80211_regdomain.h> 150#include <net80211/ieee80211_ratectl.h> 151#include <net80211/ieee80211_radiotap.h> 152 153#include <dev/iwm/if_iwmreg.h> 154#include <dev/iwm/if_iwmvar.h> |
155#include <dev/iwm/if_iwm_config.h> |
|
155#include <dev/iwm/if_iwm_debug.h> 156#include <dev/iwm/if_iwm_binding.h> 157#include <dev/iwm/if_iwm_util.h> 158#include <dev/iwm/if_iwm_pcie_trans.h> 159 160/* 161 * Send a command to the firmware. We try to implement the Linux 162 * driver interface for the routine. --- 318 unchanged lines hidden (view full) --- 481 bus_dmamem_free(dma->tag, dma->vaddr, dma->map); 482 dma->vaddr = NULL; 483 } 484 if (dma->tag != NULL) { 485 bus_dma_tag_destroy(dma->tag); 486 dma->tag = NULL; 487 } 488} | 156#include <dev/iwm/if_iwm_debug.h> 157#include <dev/iwm/if_iwm_binding.h> 158#include <dev/iwm/if_iwm_util.h> 159#include <dev/iwm/if_iwm_pcie_trans.h> 160 161/* 162 * Send a command to the firmware. We try to implement the Linux 163 * driver interface for the routine. --- 318 unchanged lines hidden (view full) --- 482 bus_dmamem_free(dma->tag, dma->vaddr, dma->map); 483 dma->vaddr = NULL; 484 } 485 if (dma->tag != NULL) { 486 bus_dma_tag_destroy(dma->tag); 487 dma->tag = NULL; 488 } 489} |
490 491boolean_t 492iwm_mvm_rx_diversity_allowed(struct iwm_softc *sc) 493{ 494 if (num_of_ant(iwm_mvm_get_valid_rx_ant(sc)) == 1) 495 return FALSE; 496 497 /* 498 * XXX Also return FALSE when SMPS (Spatial Multiplexing Powersave) 499 * is used on any vap (in the future). 500 */ 501 502 return TRUE; 503} |
|