if_bwn_phy_n.c (300018) | if_bwn_phy_n.c (301433) |
---|---|
1/*- 2 * Copyright (c) 2016 Adrian Chadd <adrian@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2016 Adrian Chadd <adrian@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn_phy_n.c 300018 2016-05-17 07:11:12Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/bwn/if_bwn_phy_n.c 301433 2016-06-05 07:51:36Z adrian $"); |
32 33/* 34 * This is the top-level N-PHY support for the Broadcom softmac driver. 35 */ 36 37#include "opt_bwn.h" 38#include "opt_wlan.h" 39 --- 56 unchanged lines hidden (view full) --- 96 97int 98bwn_phy_n_attach(struct bwn_mac *mac) 99{ 100 101#ifdef BWN_GPL_PHY 102 return bwn_nphy_op_allocate(mac); 103#else | 32 33/* 34 * This is the top-level N-PHY support for the Broadcom softmac driver. 35 */ 36 37#include "opt_bwn.h" 38#include "opt_wlan.h" 39 --- 56 unchanged lines hidden (view full) --- 96 97int 98bwn_phy_n_attach(struct bwn_mac *mac) 99{ 100 101#ifdef BWN_GPL_PHY 102 return bwn_nphy_op_allocate(mac); 103#else |
104 device_printf(mac->mac_sc->sc_dev, 105 "%s: BWN_GPL_PHY not in kernel config; " 106 "no PHY-N support\n", __func__); |
|
104 return (ENXIO); 105#endif 106} 107 108void 109bwn_phy_n_detach(struct bwn_mac *mac) 110{ 111 --- 170 unchanged lines hidden --- | 107 return (ENXIO); 108#endif 109} 110 111void 112bwn_phy_n_detach(struct bwn_mac *mac) 113{ 114 --- 170 unchanged lines hidden --- |