From patchwork Tue Feb 14 11:26:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhimanyu V X-Patchwork-Id: 727793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vN0WH5LfRz9ryj for ; Tue, 14 Feb 2017 22:27:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B6034858F3; Tue, 14 Feb 2017 11:27:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23EU201drAs2; Tue, 14 Feb 2017 11:27:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 981BF84A0D; Tue, 14 Feb 2017 11:27:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 76BEF1BFA4B for ; Tue, 14 Feb 2017 11:27:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 734ED870A5 for ; Tue, 14 Feb 2017 11:27:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7N4OlFAvLQiN for ; Tue, 14 Feb 2017 11:27:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by hemlock.osuosl.org (Postfix) with ESMTP id 70AA6859B9 for ; Tue, 14 Feb 2017 11:27:01 +0000 (UTC) Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id 54815C4A4AE6E for ; Tue, 14 Feb 2017 11:26:56 +0000 (GMT) Received: from abhi-linux.pu.imgtec.org (192.168.91.133) by HHMAIL01.hh.imgtec.org (10.100.10.19) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 14 Feb 2017 11:26:58 +0000 From: Abhimanyu V To: Date: Tue, 14 Feb 2017 16:56:44 +0530 Message-ID: <1487071605-21494-1-git-send-email-abhimanyu.vishwakarma@imgtec.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [192.168.91.133] Cc: Abhimanyu Vishwakarma Subject: [Buildroot] [PATCH 1/2] uccp420wlan: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Abhimanyu Vishwakarma Wifi kernel module and firmware for Imagination explorer RPU Signed-off-by: Abhimanyu Vishwakarma Reviewed-by: Rahul Bedarkar --- package/Config.in | 1 + ...001-fix-compilation-error-with-kernel-4.4.patch | 90 ++++++++++++++++++++++ package/uccp420wlan/Config.in | 13 ++++ package/uccp420wlan/uccp420wlan.mk | 20 +++++ 4 files changed, 124 insertions(+) create mode 100644 package/uccp420wlan/0001-fix-compilation-error-with-kernel-4.4.patch create mode 100644 package/uccp420wlan/Config.in create mode 100644 package/uccp420wlan/uccp420wlan.mk diff --git a/package/Config.in b/package/Config.in index deff0fe..ef5f849 100644 --- a/package/Config.in +++ b/package/Config.in @@ -474,6 +474,7 @@ endmenu source "package/ti-uim/Config.in" source "package/ti-utils/Config.in" source "package/triggerhappy/Config.in" + source "package/uccp420wlan/Config.in" source "package/uboot-tools/Config.in" source "package/ubus/Config.in" source "package/udev/Config.in" diff --git a/package/uccp420wlan/0001-fix-compilation-error-with-kernel-4.4.patch b/package/uccp420wlan/0001-fix-compilation-error-with-kernel-4.4.patch new file mode 100644 index 0000000..43026b8 --- /dev/null +++ b/package/uccp420wlan/0001-fix-compilation-error-with-kernel-4.4.patch @@ -0,0 +1,90 @@ +commit b5f449a2c48d2fe7c9341b32fea5a62dd6699e38 +Author: Abhimanyu Vishwakarma +Date: Mon Jan 2 16:15:22 2017 +0530 + + Fix compilation error with kernel 4.4 + + Revert "Fix errors/warnings while compiling against kmod-mac80211" + + This reverts commit e62baef655898526c69250bc63723241f3f4c46d. + + Signed-off-by: Abhimanyu Vishwakarma + +diff --git a/src/80211_if.c b/src/80211_if.c +index 6291194..5ce61b7 100644 +--- a/src/80211_if.c ++++ b/src/80211_if.c +@@ -1467,7 +1467,9 @@ static void init_hw(struct ieee80211_hw *hw) + + static int ampdu_action(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, +- struct ieee80211_ampdu_params *params) ++ enum ieee80211_ampdu_mlme_action action, ++ struct ieee80211_sta *sta, ++ u16 tid, u16 *ssn, u8 buf_size, bool amsdu) + { + int ret = 0; + unsigned int val = 0; +@@ -1476,14 +1478,14 @@ static int ampdu_action(struct ieee80211_hw *hw, + UCCP_DEBUG_80211IF("%s-80211IF: ampdu action started\n", + ((struct mac80211_dev *)(hw->priv))->name); + /* TODO */ +- switch (params->action) { ++ switch (action) { + case IEEE80211_AMPDU_RX_START: + { +- val = params->tid | TID_INITIATOR_AP; ++ val = tid | TID_INITIATOR_AP; + dev->tid_info[val].tid_state = TID_STATE_AGGR_START; +- dev->tid_info[val].ssn = params->ssn; ++ dev->tid_info[val].ssn = *ssn; + uccp420wlan_prog_ba_session_data(1, +- params->tid, ++ tid, + &dev->tid_info[val].ssn, + 1, + vif->addr, +@@ -1492,10 +1494,10 @@ static int ampdu_action(struct ieee80211_hw *hw, + break; + case IEEE80211_AMPDU_RX_STOP: + { +- val = params->tid | TID_INITIATOR_AP; ++ val = tid | TID_INITIATOR_AP; + dev->tid_info[val].tid_state = TID_STATE_AGGR_STOP; + uccp420wlan_prog_ba_session_data(0, +- params->tid, ++ tid, + &dev->tid_info[val].ssn, + 1, + vif->addr, +@@ -1504,24 +1506,24 @@ static int ampdu_action(struct ieee80211_hw *hw, + break; + case IEEE80211_AMPDU_TX_START: + { +- val = params->tid | TID_INITIATOR_STA; +- ieee80211_start_tx_ba_cb_irqsafe(vif, params->sta->addr, params->tid); ++ val = tid | TID_INITIATOR_STA; ++ ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid); + dev->tid_info[val].tid_state = TID_STATE_AGGR_START; +- dev->tid_info[val].ssn = params->ssn; ++ dev->tid_info[val].ssn = *ssn; + } + break; + case IEEE80211_AMPDU_TX_STOP_FLUSH: + case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: + case IEEE80211_AMPDU_TX_STOP_CONT: + { +- val = params->tid | TID_INITIATOR_STA; ++ val = tid | TID_INITIATOR_STA; + dev->tid_info[val].tid_state = TID_STATE_AGGR_STOP; +- ieee80211_stop_tx_ba_cb_irqsafe(vif, params->sta->addr, params->tid); ++ ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); + } + break; + case IEEE80211_AMPDU_TX_OPERATIONAL: + { +- val = params->tid | TID_INITIATOR_STA; ++ val = tid | TID_INITIATOR_STA; + dev->tid_info[val].tid_state = TID_STATE_AGGR_OPERATIONAL; + } + break; diff --git a/package/uccp420wlan/Config.in b/package/uccp420wlan/Config.in new file mode 100644 index 0000000..8f0df12 --- /dev/null +++ b/package/uccp420wlan/Config.in @@ -0,0 +1,13 @@ +config BR2_PACKAGE_UCCP420WLAN + bool "uccp420wlan" + depends on BR2_LINUX_KERNEL + help + SoftMAC (mac80211) based WiFi driver for Imagination's Explorer RPU uccp420. + This supports Dual Band WiFi with 2.4GHz - 2x2 b/g/n 40MHz, 5GHz - 2x2 a/n/11ac 80MHz modes + + Used in creator ci40 board. + + https://github.com/CreatorDev/uccp420wlan + +comment "uccp420wlan needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL diff --git a/package/uccp420wlan/uccp420wlan.mk b/package/uccp420wlan/uccp420wlan.mk new file mode 100644 index 0000000..f3c8064 --- /dev/null +++ b/package/uccp420wlan/uccp420wlan.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# uccp420wlan +# +################################################################################ + +UCCP420WLAN_VERSION = v6.9 +UCCP420WLAN_SITE = $(call github,CreatorDev,uccp420wlan,$(UCCP420WLAN_VERSION)) +UCCP420WLAN_LICENSE = GPLv2 (kernel module), proprietary (firmware blob) +UCCP420WLAN_LICENSE_FILES = COPYING + +define UCCP420WLAN_INSTALL_FIRMWARE + mkdir -p $(TARGET_DIR)/lib/firmware/img/uccp420wlan + cp $(@D)/firmware/*.ldr $(TARGET_DIR)/lib/firmware/img/uccp420wlan +endef + +UCCP420WLAN_POST_INSTALL_TARGET_HOOKS += UCCP420WLAN_INSTALL_FIRMWARE + +$(eval $(kernel-module)) +$(eval $(generic-package))