diff --git a/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/_board.bin b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/_board.bin new file mode 100644 index 0000000..14896e2 Binary files /dev/null and b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/_board.bin differ diff --git a/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board-2.bin b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board-2.bin new file mode 100644 index 0000000..841456c Binary files /dev/null and b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board-2.bin differ diff --git a/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board.bin b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board.bin new file mode 100644 index 0000000..841456c Binary files /dev/null and b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/board.bin differ diff --git a/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/firmware-5.bin b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/firmware-5.bin new file mode 100644 index 0000000..c32528c Binary files /dev/null and b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/firmware-5.bin differ diff --git a/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/notice_ath10k_firmware-5.txt b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/notice_ath10k_firmware-5.txt new file mode 100644 index 0000000..f03849d --- /dev/null +++ b/otus/freebsd/src/sys/contrib/dev/athp/QCA9377_hw1.0/notice_ath10k_firmware-5.txt @@ -0,0 +1,1128 @@ +This Notice.txt file contains certain notices of software components included +with the software that Qualcomm Atheros, Inc. ("Qualcomm Atheros") is required +to provide you. Except where prohibited by the open source license, the +content of this notices file is only provided to satisfy Qualcomm Atheros's +attribution and notice requirement; your use of these software components +together with the Qualcomm Atheros software (Qualcomm Atheros software +hereinafter referred to as "Software") is subject to the terms of your +agreement from Qualcomm Atheros. Compliance with all copyright laws and +software license agreements included in the notice section of this file +are the responsibility of the user. Except as may be granted by separate +express written agreement, this file provides no license to any patents, +trademarks, copyrights, or other intellectual property of Qualcomm Incorporated +or any of its subsidiaries. + +Copyright (c) 2015 Qualcomm Atheros, Inc. All rights reserved. + +Qualcomm is a trademark of Qualcomm Incorporated, registered in the +United States and other countries. All Qualcomm Incorporated trademarks +are used with permission. Atheros is a trademark of Qualcomm Atheros, Inc., +registered in the United States and other countries. Other products and +brand names may be trademarks or registered trademarks of their respective owners. +NOTICES: +============================================================================= + + +* Copyright (c) 2014 Qualcomm Atheros, Inc. +* All Rights Reserved. +* Qualcomm Atheros Confidential and Proprietary. + *Notifications and licenses are retained for attribution purposes only * + +Copyright (c) 2002-2004 Sam Leffler, Errno Consulting +// All rights reserved. +// $ATH_LICENSE_NULL$ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer, +// without modification. +// 2. Redistributions in binary form must reproduce at minimum a disclaimer +// similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +// redistribution must be conditioned upon including a substantially +// similar Disclaimer requirement for further binary redistribution. +// 3. Neither the names of the above-listed copyright holders nor the names +// of any contributors may be used to endorse or promote products derived +// from this software without specific prior written permission. +// +// Alternatively, this software may be distributed under the terms of the +// GNU General Public License ("GPL") version 2 as published by the Free +// Software Foundation. +// +// NO WARRANTY +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +// AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +// OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +// THE POSSIBILITY OF SUCH DAMAGES. + +*For this file, which was received with alternative licensing options for +* distribution, Qualcomm Atheros, Inc. has selected the BSD license. + + + + +/* + * FILE: sha2.h + * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/ + * + * Copyright (c) 2000-2001, Aaron D. Gifford + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the copyright holder nor the names of contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ + + + +/* + * Copyright (c) 1998 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Lennart Augustsson (lennart@augustsson.net) at + * Carlstedt Research & Technology. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the NetBSD + * Foundation, Inc. and its contributors. + * 4. Neither the name of The NetBSD Foundation nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/* Modified by Synopsys, Inc, 12/12/2007 */ + + + +// +// Copyright (c) 1991, 1993 +// The Regents of the University of California. All rights reserved. +// $ATH_LICENSE_NULL$ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. All advertising materials mentioning features or use of this software +// must display the following acknowledgement: +// This product includes software developed by the University of +// California, Berkeley and its contributors. +// 4. Neither the name of the University nor the names of its contributors +// may be used to endorse or promote products derived from this software +// without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +// SUCH DAMAGE. +// +// @(#)queue.h 8.5 (Berkeley) 8/20/94 +// $FreeBSD: src/sys/sys/queue.h,v 1.58 2004/04/07 04:19:49 imp Exp $ +// + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * AES-based functions + * + * - AES Key Wrap Algorithm (128-bit KEK) (RFC3394) + * - One-Key CBC MAC (OMAC1) hash with AES-128 + * - AES-128 CTR mode encryption + * - AES-128 EAX mode encryption/decryption + * - AES-128 CBC + * + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ +/* + * Common helper macros, etc. + * Copyright (c) 2002-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * SHA1 hash implementation and interface functions + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * AES (Rijndael) cipher + * + * Modifications to public domain implementation: + * - support only 128-bit keys + * - cleanup + * - use C pre-processor to make it easier to change S table access + * - added option (AES_SMALL_TABLES) for reducing code size by about 8 kB at + * cost of reduced throughput (quite small difference on Pentium 4, + * 10-25% when using -O1 or -O2 optimization) + * + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + +/* + * rijndael-alg-fst.c + * + * @version 3.0 (December 2000) + * + * Optimised ANSI C code for the Rijndael cipher (now AES) + * + * @author Vincent Rijmen + * @author Antoon Bosselaers + * @author Paulo Barreto + * + * This code is hereby placed in the public domain. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS + * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * AES-based functions + * + * - AES Key Wrap Algorithm (128-bit KEK) (RFC3394) + * - One-Key CBC MAC (OMAC1) hash with AES-128 + * - AES-128 CTR mode encryption + * - AES-128 EAX mode encryption/decryption + * - AES-128 CBC + * + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * wpa_supplicant/hostapd / common helper functions, etc. + * Copyright (c) 2002-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * WPA Supplicant / Configuration file structures + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * WPA Supplicant / Network configuration structures + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * WPA Supplicant / wrapper functions for crypto libraries + * Copyright (c) 2004-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + * + * This file defines the cryptographic functions that need to be implemented + * for wpa_supplicant and hostapd. When TLS is not used, internal + * implementation of MD5, SHA1, and AES is used and no external libraries are + * required. When TLS is enabled (e.g., by enabling EAP-TLS or EAP-PEAP), the + * crypto library used by the TLS implementation is expected to be used for + * non-TLS needs, too, in order to save space by not implementing these + * functions twice. + * + * Wrapper code for using each crypto library is in its own file (crypto*.c) + * and one of these files is build and linked in to provide the functions + * defined here. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * WPA Supplicant - Common definitions + * Copyright (c) 2004-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * SHA1 hash implementation and interface functions + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * wpa_supplicant - WPA definitions + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * wpa_supplicant - Internal WPA state machine definitions + * Copyright (c) 2004-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * WPA Supplicant - WPA state machine and EAPOL-Key processing + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + + + +/* + * Copyright (c) 2012 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + */ + +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +//- +// Copyright (c) 2002-2004 Sam Leffler, Errno Consulting +// All rights reserved. +// $ATH_LICENSE_NULL$ +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer, +// without modification. +// 2. Redistributions in binary form must reproduce at minimum a disclaimer +// similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any +// redistribution must be conditioned upon including a substantially +// similar Disclaimer requirement for further binary redistribution. +// 3. Neither the names of the above-listed copyright holders nor the names +// of any contributors may be used to endorse or promote products derived +// from this software without specific prior written permission. +// +// Alternatively, this software may be distributed under the terms of the +// GNU General Public License ("GPL") version 2 as published by the Free +// Software Foundation. +// +// NO WARRANTY +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY +// AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +// THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, +// OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +// THE POSSIBILITY OF SUCH DAMAGES. +// +// + + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * $ATH_LICENSE_TARGET_C$ + */ + +// +// +// This code implements the MD5 message-digest algorithm. +// The algorithm is due to Ron Rivest. This code was +// written by Colin Plumb in 1993, no copyright is claimed. +// This code is in the public domain; do with it what you wish. +// +// Equivalent code is available from RSA Data Security, Inc. +// This code has been tested against that, and is equivalent, +// except that you don't need to include two pages of legalese +// with every copy. +// +// To compute the message digest of a chunk of bytes, declare an +// MD5Context structure, pass it to MD5Init, call MD5Update as +// needed on buffers full of bytes, and then call MD5Final, which +// will fill a supplied 16-byte array with the digest. +// + + + + +/*=========================================================================== + @file secrsa_encryption.c + + This file provides RSA PKCS #1 v1.5 encryption/decryption implementation. + =========================================================================== + + EDIT HISTORY FOR FILE + $DateTime: 2013/08/06 21:06:51 $ + $Author: pdhavali $ + + when who what, where, why + -------- --- ---------------------------------------------------------- + 04/11/11 qxu initial version + + Copyright (c) 2011 by QUALCOMM Technologies, Incorporated. All Rights Reserved. + =============================================================================*/ + + + + +/* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * $ATH_LICENSE_NULL$ + */ + +// +// Name: lzuncompr.c +// Author: Vitaly Luban +// Based on code from Marcus Geelnard +// Description: LZ77 decoder implementation. +// Reentrant: Yes +// +// ------------------------------------------------------------------------ +// Copyright (c) 2003-2006 Marcus Geelnard +// Copyright (c) 2006-2007 Atheros Communications Inc. +// $ATH_LICENSE_NULL$ +// This software is provided 'as-is', without any express or implied +// warranty. In no event will the authors be held liable for any damages +// arising from the use of this software. +// +// Permission is granted to anyone to use this software for any purpose, +// including commercial applications, and to alter it and redistribute it +// freely, subject to the following restrictions: +// +// 1. The origin of this software must not be misrepresented; you must not +// claim that you wrote the original software. If you use this software +// in a product, an acknowledgment in the product documentation would +// be appreciated but is not required. +// +// 2. Altered source versions must be plainly marked as such, and must not +// be misrepresented as being the original software. +// +// 3. This notice may not be removed or altered from any source +// distribution. +// +// Marcus Geelnard +// marcus.geelnard at home.se +// + + + + + +/* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + +/* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + +/* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + /* ========================================================================== + * $Revision: #3 $ + * $Date: 2013/08/06 $ + * $Change: 2161544 $ + * + * Synopsys SS USB3 Linux Software Driver and documentation (hereinafter, + * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless + * otherwise expressly agreed to in writing between Synopsys and you. + * + * The Software IS NOT an item of Licensed Software or Licensed Product under + * any End User Software License Agreement or Agreement for Licensed Product + * with Synopsys or any supplement thereto. You are permitted to use and + * redistribute this Software in source and binary forms, with or without + * modification, provided that redistributions of source code must retain this + * notice. You may not view, use, disclose, copy or distribute this file or + * any information contained herein except pursuant to this license grant from + * Synopsys. If you do not agree with this notice, including the disclaimer + * below, then you are not authorized to use the Software. + * + * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + * DAMAGE. + * ========================================================================== */ + + + + + + /* + * Copyright (c) 2011 Qualcomm Atheros, Inc. + * All Rights Reserved. + * Qualcomm Atheros Confidential and Proprietary. + * Notifications and licenses are retained for attribution purposes only. + */ +/* + * For this file, which was received with alternative licensing options for + * distribution, Qualcomm Atheros, Inc. has selected the BSD license. + */ + +/* + * MD5 hash implementation and interface functions + * Copyright (c) 2003-2005, Jouni Malinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + + \ No newline at end of file diff --git a/otus/freebsd/src/sys/dev/athp/hal/hw.h b/otus/freebsd/src/sys/dev/athp/hal/hw.h index 7baf3eb..893a73d 100644 --- a/otus/freebsd/src/sys/dev/athp/hal/hw.h +++ b/otus/freebsd/src/sys/dev/athp/hal/hw.h @@ -42,6 +42,11 @@ #define QCA6174_HW_3_0_VERSION 0x05020000 #define QCA6174_HW_3_2_VERSION 0x05030000 +/* QCA9377 target BMI version signatures */ +#define QCA9377_HW_1_0_DEV_VERSION 0x05020000 +#define QCA9377_HW_1_1_DEV_VERSION 0x05020001 + + enum qca6174_pci_rev { QCA6174_PCI_REV_1_1 = 0x11, QCA6174_PCI_REV_1_3 = 0x13, @@ -60,6 +65,11 @@ enum qca6174_chip_id_rev { QCA6174_HW_3_2_CHIP_ID_REV = 10, }; +enum qca9377_chip_id_rev { + QCA9377_HW_1_0_CHIP_ID_REV = 0x0, + QCA9377_HW_1_1_CHIP_ID_REV = 0x1, +}; + #define QCA6174_HW_2_1_FW_DIR ATH10K_FW_DIR "_QCA6174_hw2.1" #define QCA6174_HW_2_1_FW_FILE "firmware.bin" #define QCA6174_HW_2_1_OTP_FILE "otp.bin" @@ -72,6 +82,13 @@ enum qca6174_chip_id_rev { #define QCA6174_HW_3_0_BOARD_DATA_FILE "board.bin" #define QCA6174_HW_3_0_PATCH_LOAD_ADDR 0x1234 +/* QCA9377 1.0 definitions */ +#define QCA9377_HW_1_0_FW_DIR ATH10K_FW_DIR "_QCA9377_hw1.0" +#define QCA9377_HW_1_0_FW_FILE "firmware.bin" +#define QCA9377_HW_1_0_OTP_FILE "otp.bin" +#define QCA9377_HW_1_0_BOARD_DATA_FILE "board.bin" +#define QCA9377_HW_1_0_PATCH_LOAD_ADDR 0x1234 + /* QCA99X0 1.0 definitions (unsupported) */ #define QCA99X0_HW_1_0_CHIP_ID_REV 0x0 @@ -163,6 +180,7 @@ enum ath10k_hw_rev { ATH10K_HW_QCA988X, ATH10K_HW_QCA6174, ATH10K_HW_QCA99X0, + ATH10K_HW_QCA9377, }; struct ath10k_hw_regs { @@ -217,6 +235,7 @@ void ath10k_hw_fill_survey_time(struct ath10k *ar, struct survey_info *survey, #define QCA_REV_988X(sc) ((sc)->sc_hwrev == ATH10K_HW_QCA988X) #define QCA_REV_6174(sc) ((sc)->sc_hwrev == ATH10K_HW_QCA6174) #define QCA_REV_99X0(sc) ((sc)->sc_hwrev == ATH10K_HW_QCA99X0) +#define QCA_REV_9377(sc) ((sc)->sc_hwrev == ATH10K_HW_QCA9377) /* Known pecularities: * - raw appears in nwifi decap, raw and nwifi appear in ethernet decap diff --git a/otus/freebsd/src/sys/dev/athp/hal/targaddrs.h b/otus/freebsd/src/sys/dev/athp/hal/targaddrs.h index 0a481b6..55b7e70 100644 --- a/otus/freebsd/src/sys/dev/athp/hal/targaddrs.h +++ b/otus/freebsd/src/sys/dev/athp/hal/targaddrs.h @@ -453,4 +453,7 @@ Fw Mode/SubMode Mask #define QCA99X0_BOARD_DATA_SZ 12288 #define QCA99X0_BOARD_EXT_DATA_SZ 0 +#define QCA9377_BOARD_DATA_SZ QCA6174_BOARD_DATA_SZ +#define QCA9377_BOARD_EXT_DATA_SZ 0 + #endif /* __ATHP_HAL_TARGADDRS_H__ */ diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_core.c b/otus/freebsd/src/sys/dev/athp/if_athp_core.c index 0c8fda5..5367484 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_core.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_core.c @@ -196,6 +196,40 @@ static const struct ath10k_hw_params ath10k_hw_params_list[] = { .board_ext_size = QCA99X0_BOARD_EXT_DATA_SZ, }, }, + { + .id = QCA9377_HW_1_0_DEV_VERSION, + .name = "qca9377 hw1.0", + .patch_load_addr = QCA9377_HW_1_0_PATCH_LOAD_ADDR, + .uart_pin = 6, + .otp_exe_param = 0, + .continuous_frag_desc = true, + .channel_counters_freq_hz = 88000, + .fw = { + .dir = QCA9377_HW_1_0_FW_DIR, + .fw = QCA9377_HW_1_0_FW_FILE, + .otp = QCA9377_HW_1_0_OTP_FILE, + .board = QCA9377_HW_1_0_BOARD_DATA_FILE, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + }, + { + .id = QCA9377_HW_1_1_DEV_VERSION, + .name = "qca9377 hw1.1", + .patch_load_addr = QCA9377_HW_1_0_PATCH_LOAD_ADDR, + .uart_pin = 6, + .otp_exe_param = 0, + .continuous_frag_desc = true, + .channel_counters_freq_hz = 88000, + .fw = { + .dir = QCA9377_HW_1_0_FW_DIR, + .fw = QCA9377_HW_1_0_FW_FILE, + .otp = QCA9377_HW_1_0_OTP_FILE, + .board = QCA9377_HW_1_0_BOARD_DATA_FILE, + .board_size = QCA9377_BOARD_DATA_SZ, + .board_ext_size = QCA9377_BOARD_EXT_DATA_SZ, + }, + }, }; static const char *const ath10k_core_fw_feature_str[] = { diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_pci_ce.c b/otus/freebsd/src/sys/dev/athp/if_athp_pci_ce.c index 215f998..1befc07 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_pci_ce.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_pci_ce.c @@ -425,7 +425,7 @@ exit: void __ath10k_ce_send_revert(struct ath10k_ce_pipe *pipe) { struct ath10k *ar = pipe->ar; - struct ath10k_pci *ar_pci = pipe->psc; +// struct ath10k_pci *ar_pci = pipe->psc; struct ath10k_ce_ring *src_ring = pipe->src_ring; uint32_t ctrl_addr = pipe->ctrl_addr; @@ -486,7 +486,7 @@ int ath10k_ce_num_free_src_entries(struct ath10k_ce_pipe *pipe) int __ath10k_ce_rx_num_free_bufs(struct ath10k_ce_pipe *pipe) { // struct ath10k *ar = pipe->ar; - struct ath10k_pci *ar_pci = pipe->psc; + //struct ath10k_pci *ar_pci = pipe->psc; struct ath10k_ce_ring *dest_ring = pipe->dest_ring; unsigned int nentries_mask = dest_ring->nentries_mask; unsigned int write_index = dest_ring->write_index; @@ -500,7 +500,7 @@ int __ath10k_ce_rx_num_free_bufs(struct ath10k_ce_pipe *pipe) int __ath10k_ce_rx_post_buf(struct ath10k_ce_pipe *pipe, void *ctx, uint32_t paddr) { struct ath10k *ar = pipe->ar; - struct ath10k_pci *ar_pci = pipe->psc; + //struct ath10k_pci *ar_pci = pipe->psc; struct ath10k_ce_ring *dest_ring = pipe->dest_ring; unsigned int nentries_mask = dest_ring->nentries_mask; unsigned int write_index = dest_ring->write_index; diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_pci_chip.c b/otus/freebsd/src/sys/dev/athp/if_athp_pci_chip.c index 99088b2..84127a8 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_pci_chip.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_pci_chip.c @@ -125,6 +125,7 @@ static unsigned int ath10k_pci_reset_mode = ATH10K_PCI_RESET_AUTO; #define QCA6164_2_1_DEVICE_ID (0x0041) #define QCA6174_2_1_DEVICE_ID (0x003e) #define QCA99X0_2_0_DEVICE_ID (0x0040) +#define QCA9377_1_0_DEVICE_ID (0x0042) static const struct athp_pci_supp_chip athp_pci_supp_chips[] = { /* @@ -147,6 +148,9 @@ static const struct athp_pci_supp_chip athp_pci_supp_chips[] = { { QCA6174_2_1_DEVICE_ID, QCA6174_HW_3_2_CHIP_ID_REV }, { QCA99X0_2_0_DEVICE_ID, QCA99X0_HW_2_0_CHIP_ID_REV }, + + { QCA9377_1_0_DEVICE_ID, QCA9377_HW_1_0_CHIP_ID_REV }, + { QCA9377_1_0_DEVICE_ID, QCA9377_HW_1_1_CHIP_ID_REV }, }; static void ath10k_pci_buffer_cleanup(struct ath10k_pci *ar); @@ -409,6 +413,7 @@ ath10k_pci_targ_cpu_to_ce_addr(struct ath10k_pci *ar_pci, uint32_t addr) switch (ar->sc_hwrev) { case ATH10K_HW_QCA988X: case ATH10K_HW_QCA6174: + case ATH10K_HW_QCA9377: val = (athp_pci_read32(ar, SOC_CORE_BASE_ADDRESS(ar->sc_regofs) + CORE_CTRL_ADDRESS) & 0x7ff) << 21; @@ -431,6 +436,7 @@ ath10k_pci_irq_msi_fw_mask(struct ath10k_pci *ar_pci) switch (ar->sc_hwrev) { case ATH10K_HW_QCA988X: case ATH10K_HW_QCA6174: + case ATH10K_HW_QCA9377: val = athp_pci_read32(ar, SOC_CORE_BASE_ADDRESS(ar->sc_regofs) + CORE_CTRL_ADDRESS); val &= ~CORE_CTRL_PCIE_REG_31_MASK; @@ -454,6 +460,7 @@ ath10k_pci_irq_msi_fw_unmask(struct ath10k_pci *ar_pci) switch (ar->sc_hwrev) { case ATH10K_HW_QCA988X: case ATH10K_HW_QCA6174: + case ATH10K_HW_QCA9377: val = athp_pci_read32(ar, SOC_CORE_BASE_ADDRESS(ar->sc_regofs) + CORE_CTRL_ADDRESS); val |= CORE_CTRL_PCIE_REG_31_MASK; @@ -546,6 +553,8 @@ ath10k_pci_get_num_banks(struct ath10k_pci *ar_pci) return 9; } break; + case QCA9377_1_0_DEVICE_ID: + return 9; } ath10k_warn(ar, "unknown number of banks, assuming 1\n"); @@ -682,7 +691,7 @@ ath10k_pci_safe_chip_reset(struct ath10k_pci *ar_pci) { struct ath10k *ar = &ar_pci->sc_sc; - if (QCA_REV_988X(ar) || QCA_REV_6174(ar)) { + if (QCA_REV_988X(ar) || QCA_REV_6174(ar) || QCA_REV_9377(ar)) { return ath10k_pci_warm_reset(ar_pci); } else if (QCA_REV_99X0(ar)) { ath10k_pci_irq_disable(ar_pci); @@ -837,7 +846,7 @@ ath10k_pci_chip_reset(struct ath10k_pci *ar_pci) if (QCA_REV_988X(ar)) return ath10k_pci_qca988x_chip_reset(ar_pci); - else if (QCA_REV_6174(ar)) + else if (QCA_REV_6174(ar) || QCA_REV_9377(ar)) return ath10k_pci_qca6174_chip_reset(ar_pci); else if (QCA_REV_99X0(ar)) return ath10k_pci_qca99x0_chip_reset(ar_pci); diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_pci_hif.c b/otus/freebsd/src/sys/dev/athp/if_athp_pci_hif.c index c0e1532..28428d1 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_pci_hif.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_pci_hif.c @@ -201,6 +201,7 @@ ath10k_pci_targ_cpu_to_ce_addr(struct ath10k *ar, u32 addr) switch (ar->sc_hwrev) { case ATH10K_HW_QCA988X: case ATH10K_HW_QCA6174: + case ATH10K_HW_QCA9377: val = (athp_pci_read32(ar, SOC_CORE_BASE_ADDRESS(ar->sc_regofs) + CORE_CTRL_ADDRESS) & 0x7ff) << 21; break; diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_pci_pipe.c b/otus/freebsd/src/sys/dev/athp/if_athp_pci_pipe.c index c09eab7..801438f 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_pci_pipe.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_pci_pipe.c @@ -123,7 +123,7 @@ static int __ath10k_pci_rx_post_buf(struct ath10k_pci_pipe *pipe) { struct ath10k *ar = pipe->ar; - struct ath10k_pci *ar_pci = pipe->psc; +// struct ath10k_pci *ar_pci = pipe->psc; struct ath10k_ce_pipe *ce_pipe = pipe->ce_hdl; struct athp_buf *pbuf; int ret; @@ -173,7 +173,7 @@ static void __ath10k_pci_rx_post_pipe(struct ath10k_pci_pipe *pipe) { struct ath10k *ar = pipe->ar; - struct ath10k_pci *ar_pci = pipe->psc; + //struct ath10k_pci *ar_pci = pipe->psc; struct ath10k_ce_pipe *ce_pipe = pipe->ce_hdl; int ret, num; diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_var.h b/otus/freebsd/src/sys/dev/athp/if_athp_var.h index dda41a7..c56f12b 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_var.h +++ b/otus/freebsd/src/sys/dev/athp/if_athp_var.h @@ -31,6 +31,13 @@ #include "if_athp_htt.h" #include "if_athp_hal_compl.h" +#ifndef MA_OWNED + #define MA_OWNED LA_XLOCKED +#endif +#ifndef MA_NOTOWNED + #define MA_NOTOWNED LA_UNLOCKED +#endif + #define ATHP_RXBUF_MAX_SCATTER 1 #define ATHP_TXBUF_MAX_SCATTER 1 /* XXX upped these from 1024 */ diff --git a/otus/freebsd/src/sys/modules/athpfw/Makefile b/otus/freebsd/src/sys/modules/athpfw/Makefile index 07915fb..92e9967 100644 --- a/otus/freebsd/src/sys/modules/athpfw/Makefile +++ b/otus/freebsd/src/sys/modules/athpfw/Makefile @@ -14,4 +14,7 @@ SUBDIR+= athp_QCA6174_hw2.1_firmware-5 SUBDIR+= athp_QCA6174_hw3.0_board SUBDIR+= athp_QCA6174_hw3.0_firmware-4 +SUBDIR+= athp_QCA9377_hw1.0_board +SUBDIR+= athp_QCA9377_hw1.0_firmware-5 + .include diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/Makefile b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/Makefile new file mode 100644 index 0000000..ddd4176 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +KMOD= athp_QCA9377_hw1.0_board.bin +FIRMWS= athp_QCA9377_hw1.0_board.bin:athp_QCA9377_hw1.0_board.bin:1 + +CLEANFILES= board.bin + +athp_QCA9377_hw1.0_board.bin: ${.CURDIR}/../../../contrib/dev/athp/QCA9377_hw1.0/board.bin + cp ${.CURDIR}/../../../contrib/dev/athp/QCA9377_hw1.0/board.bin ${.TARGET} + +.include diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/athp_QCA9377_hw1.0_board.bin.c b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/athp_QCA9377_hw1.0_board.bin.c new file mode 100644 index 0000000..b377809 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/athp_QCA9377_hw1.0_board.bin.c @@ -0,0 +1,45 @@ +/* + * Automatically generated by: + * $FreeBSD: releng/12.0/sys/tools/fw_stub.awk 326272 2017-11-27 15:23:17Z pfg $ + */ +#include +#include +#include +#include +#include +#include +#include + +extern char _binary_athp_QCA9377_hw1_0_board_bin_start[], _binary_athp_QCA9377_hw1_0_board_bin_end[]; + +static int +athp_QCA9377_hw1_0_board_bin_fw_modevent(module_t mod, int type, void *unused) +{ + const struct firmware *fp, *parent; + int error; + switch (type) { + case MOD_LOAD: + + fp = firmware_register("athp_QCA9377_hw1.0_board.bin", _binary_athp_QCA9377_hw1_0_board_bin_start , (size_t)(_binary_athp_QCA9377_hw1_0_board_bin_end - _binary_athp_QCA9377_hw1_0_board_bin_start), 1, NULL); + if (fp == NULL) + goto fail_0; + parent = fp; + return (0); + fail_0: + return (ENXIO); + case MOD_UNLOAD: + error = firmware_unregister("athp_QCA9377_hw1.0_board.bin"); + return (error); + } + return (EINVAL); +} + +static moduledata_t athp_QCA9377_hw1_0_board_bin_fw_mod = { + "athp_QCA9377_hw1_0_board_bin_fw", + athp_QCA9377_hw1_0_board_bin_fw_modevent, + 0 +}; +DECLARE_MODULE(athp_QCA9377_hw1_0_board_bin_fw, athp_QCA9377_hw1_0_board_bin_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); +MODULE_VERSION(athp_QCA9377_hw1_0_board_bin_fw, 1); +MODULE_DEPEND(athp_QCA9377_hw1_0_board_bin_fw, firmware, 1, 1, 1); + diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/machine b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/machine new file mode 120000 index 0000000..f5ca013 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/machine @@ -0,0 +1 @@ +/usr/src/sys/amd64/include \ No newline at end of file diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/x86 b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/x86 new file mode 120000 index 0000000..ff2f314 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_board/x86 @@ -0,0 +1 @@ +/usr/src/sys/x86/include \ No newline at end of file diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/Makefile b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/Makefile new file mode 100644 index 0000000..d6fcb74 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +KMOD= athp_QCA9377_hw1.0_firmware-5.bin +FIRMWS= athp_QCA9377_hw1.0_firmware-5.bin:athp_QCA9377_hw1.0_firmware-5.bin:1 + +CLEANFILES= board.bin + +athp_QCA9377_hw1.0_firmware-5.bin: ${.CURDIR}/../../../contrib/dev/athp/QCA9377_hw1.0/firmware-5.bin + cp ${.CURDIR}/../../../contrib/dev/athp/QCA9377_hw1.0/firmware-5.bin ${.TARGET} + +.include diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/athp_QCA9377_hw1.0_firmware-5.bin.c b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/athp_QCA9377_hw1.0_firmware-5.bin.c new file mode 100644 index 0000000..8e57c8a --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/athp_QCA9377_hw1.0_firmware-5.bin.c @@ -0,0 +1,45 @@ +/* + * Automatically generated by: + * $FreeBSD: releng/12.0/sys/tools/fw_stub.awk 326272 2017-11-27 15:23:17Z pfg $ + */ +#include +#include +#include +#include +#include +#include +#include + +extern char _binary_athp_QCA9377_hw1_0_firmware_5_bin_start[], _binary_athp_QCA9377_hw1_0_firmware_5_bin_end[]; + +static int +athp_QCA9377_hw1_0_firmware_5_bin_fw_modevent(module_t mod, int type, void *unused) +{ + const struct firmware *fp, *parent; + int error; + switch (type) { + case MOD_LOAD: + + fp = firmware_register("athp_QCA9377_hw1.0_firmware-5.bin", _binary_athp_QCA9377_hw1_0_firmware_5_bin_start , (size_t)(_binary_athp_QCA9377_hw1_0_firmware_5_bin_end - _binary_athp_QCA9377_hw1_0_firmware_5_bin_start), 1, NULL); + if (fp == NULL) + goto fail_0; + parent = fp; + return (0); + fail_0: + return (ENXIO); + case MOD_UNLOAD: + error = firmware_unregister("athp_QCA9377_hw1.0_firmware-5.bin"); + return (error); + } + return (EINVAL); +} + +static moduledata_t athp_QCA9377_hw1_0_firmware_5_bin_fw_mod = { + "athp_QCA9377_hw1_0_firmware_5_bin_fw", + athp_QCA9377_hw1_0_firmware_5_bin_fw_modevent, + 0 +}; +DECLARE_MODULE(athp_QCA9377_hw1_0_firmware_5_bin_fw, athp_QCA9377_hw1_0_firmware_5_bin_fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST); +MODULE_VERSION(athp_QCA9377_hw1_0_firmware_5_bin_fw, 1); +MODULE_DEPEND(athp_QCA9377_hw1_0_firmware_5_bin_fw, firmware, 1, 1, 1); + diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/machine b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/machine new file mode 120000 index 0000000..f5ca013 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/machine @@ -0,0 +1 @@ +/usr/src/sys/amd64/include \ No newline at end of file diff --git a/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/x86 b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/x86 new file mode 120000 index 0000000..ff2f314 --- /dev/null +++ b/otus/freebsd/src/sys/modules/athpfw/athp_QCA9377_hw1.0_firmware-5/x86 @@ -0,0 +1 @@ +/usr/src/sys/x86/include \ No newline at end of file diff --git a/otus/freebsd/src/sys/modules/build_module b/otus/freebsd/src/sys/modules/build_module index 9525253..600f659 100755 --- a/otus/freebsd/src/sys/modules/build_module +++ b/otus/freebsd/src/sys/modules/build_module @@ -1,9 +1,9 @@ #!/bin/sh -X_SRCDIR=${X_SRCDIR:="/home/adrian/work/freebsd/head/src/"} -X_KERNDIR=${X_KERNDIR:="/home/adrian/work/freebsd/head/obj/usr/home/adrian/work/freebsd/head/src/amd64.amd64/sys/GERTRUDE/"} -X_KMODOWN=${X_KMODOWN:="adrian"} -X_KMODGRP=${X_KMODGRP:="adrian"} +X_SRCDIR=${X_SRCDIR:="/usr/src/"} +X_KERNDIR=${X_KERNDIR:="/usr/obj/usr/src/amd64.amd64/sys/GENERIC/"} +X_KMODOWN=${X_KMODOWN:="mario"} +X_KMODGRP=${X_KMODGRP:="mario"} # This allows for -HEAD includes for net80211 .. env CFLAGS="-I../../../sys/" \ @@ -11,7 +11,7 @@ make \ MODULES_OVERRIDE="" \ DEBUG_FLAGS="-g" \ DEBUG_FLAGS="-g" \ - KMODDIR="/home/adrian/git/github/erikarn/athp/otus/freebsd/modules/" \ + KMODDIR="/home/mario/Desenvolvimento/ath10k_driver/otus/freebsd/modules/" \ KMODOWN="${X_KMODOWN}" \ KMODGRP="${X_KMODGRP}" \ MAKESYSPATH="${X_SRCDIR}/share/mk" \