From patchwork Mon Aug 31 20:52:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: s prasad X-Patchwork-Id: 7101631 Return-Path: X-Original-To: patchwork-ath10k@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1316BBEEC1 for ; Mon, 31 Aug 2015 20:54:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 308AF206A3 for ; Mon, 31 Aug 2015 20:54:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AD29120532 for ; Mon, 31 Aug 2015 20:53:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWW5E-00073o-1D; Mon, 31 Aug 2015 20:53:40 +0000 Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWW4q-000729-N8 for ath10k@lists.infradead.org; Mon, 31 Aug 2015 20:53:38 +0000 Received: by vkbc123 with SMTP id c123so45099894vkb.3 for ; Mon, 31 Aug 2015 13:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XhguGMO/nWwR7NiI8F6IelRJhsDD5IetXlNy/hfWHXw=; b=f0pWWyAHuKQnrDXai/0NSIG7Sovf6u5z7mgiaSvvrJY1i6tiM8f6vKe81IJIAVI5CI ++j4eLlrrR/GgBQvQXaC8wRFXrugf89KsesoYB1aNjIw8k993BwPWJVPKueJHxENRxTY 6p2IkgS260vbcWLksZfKpzqATlFToh78zPHg52wXD0mT3vkfAZY9an0mTNbHo5/D27Pe yaHzc7a9ThMZE0XGWlkaakK7Vs5oa0mh1gykb8XCca2jLDFSm+J6rw/4usdDfVbd7hzw BVaOrx5uyfhTLXSnuSymGJsXNpCvVL0UvktaEtpxnHQ7O1pTV2r072pk4wdORu5IhjCp +OsA== MIME-Version: 1.0 X-Received: by 10.52.187.196 with SMTP id fu4mr24108686vdc.33.1441054374554; Mon, 31 Aug 2015 13:52:54 -0700 (PDT) Received: by 10.31.163.1 with HTTP; Mon, 31 Aug 2015 13:52:54 -0700 (PDT) In-Reply-To: <2520663.ftp6yqfzU7@bentobox> References: <2520663.ftp6yqfzU7@bentobox> Date: Mon, 31 Aug 2015 16:52:54 -0400 Message-ID: Subject: Fwd: CT firmware and linux kernel patches for OpenWRT( ar71xx - Tp-Link 1750AC ) From: s prasad To: Sven Eckelmann X-Spam-Note: CRM114 run bypassed due to message size (461639 bytes) X-Spam-Score: -2.7 (--) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless , ath10k Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Sven, Thank you for your patch. I applied that patch and tried to test by executing sending deauth command using aireplay-ng. However, I got following error. root@OpenWrt:/# aireplay-ng -0 1 -a 10:C3:7B:DF:EA:54 -c 9C:F3:87:49:96:7e wlan0 [ 286.183915] device wlan0 entered promiscuous mode 22:15:55 Waiting for beacon frame (BSSID: 10:C3:7B:DF:EA:54) on channel 36 [ 286.369861] ------------[ cut here ]------------ [ 286.374611] WARNING: CPU: 0 PID: 1150 at /home/openwrt/ct/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2015-06-22/drivers/net/wireless/ath/ath10k/mac.c:3695 0x87204cec() [ 286.393771] Modules linked in: pppoe ppp_async iptable_nat ath9k pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ath9k_common xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt ath9k_hw ath10k_pci ath10k_core ath mac80211 cfg80211 compat ledtrig_usbdev ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables ipv6 arc4 crypto_blkcipher ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common [ 286.469918] CPU: 0 PID: 1150 Comm: aireplay-ng Not tainted 4.1.2 #6 [ 286.476273] Stack : 803c42b2 00000037 00000000 00000001 80318d80 80371f03 878f5ba0 0000047e 803c3510 00000001 00000000 00000000 871d0000 800a6564 00000003 8031e0f4 00000e6f 00000001 8031c608 86623a84 871d0000 800a4b74 803c42b2 000000c8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ... [ 286.512635] Call Trace: [ 286.515127] [<80071be8>] show_stack+0x48/0x70 [ 286.519554] [<8008188c>] warn_slowpath_common+0xa0/0xd0 [ 286.524867] [<80081944>] warn_slowpath_null+0x18/0x24 [ 286.530024] [<87204cec>] 0x87204cec [ 286.533568] [ 286.535076] ---[ end trace d3f6cfc1171daefd ]--- Please let me know if I need to do any. I need to send De-authentication command in monitor mode. Thanks and Regards, S Prasad ---------- Forwarded message ---------- From: Sven Eckelmann Date: Fri, Aug 28, 2015 at 8:48 AM Subject: Re: CT firmware and linux kernel patches for OpenWRT( ar71xx - Tp-Link 1750AC ) To: s prasad [mailing lists removed - see other mail. please continue discussion on mailing list] On Wednesday 26 August 2015 18:59:51 s prasad wrote: > Does anybody have patches for CT firmware testing using OpenWRT environment. > I tried to create patch, however OpenWRT patches supporting only for > kernel versions 3.18 and 4.1 at the same time CT Kernels supporting > 3.17_dev, 4.0.4 and 4.2.x. Both are miss matching. > > Can somebody help me if they have patches or to create patches. Attached is the patch with the changes for mac80211. You still have to select the "Firmware from Candelatech" under ath10k. Don't select "Firmware optimized for AP operation (v10.1 / API v2)". I know that this selection should be done more cleanly but I only needed it for testing :) Also an example patch for the mentioned iw hack is attached. You just have to checkout openwrt r46435 (in git 113f685179b34015d615530575c73e61fc913039), apply these two patches, select your device, enable ath10k, enable the Candelatech firmware and build it. Kind regards, Sven From 3de347c1f83b09f1ac4190a66d53992116fa66d2 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Mon, 16 Mar 2015 17:28:39 +0100 Subject: [PATCH] iw: Hardcode VHT channel 36 in iw for testing --- .../iw/patches/300-hardcode-vht80-chan36.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch diff --git a/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch b/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch new file mode 100644 index 0000000..0cc3425 --- /dev/null +++ b/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch @@ -0,0 +1,27 @@ +diff --git a/ibss.c b/ibss.c +index 1bf1bab..6f332ce 100644 +--- a/ibss.c ++++ b/ibss.c +@@ -89,10 +89,10 @@ static int join_ibss(struct nl80211_state *state, + } + if (chanmode_selected) { + NLA_PUT_U32(msg, NL80211_ATTR_CHANNEL_WIDTH, +- chanmode_selected->width); ++ NL80211_CHAN_WIDTH_80); + NLA_PUT_U32(msg, NL80211_ATTR_CENTER_FREQ1, +- freq + chanmode_selected->freq1_diff); +- if (chanmode_selected->chantype != -1) ++ 5210); ++ if (chanmode_selected->chantype != -1 && 0) + NLA_PUT_U32(msg, + NL80211_ATTR_WIPHY_CHANNEL_TYPE, + chanmode_selected->chantype); +@@ -194,7 +194,7 @@ COMMAND(ibss, leave, NULL, + NL80211_CMD_LEAVE_IBSS, 0, CIB_NETDEV, leave_ibss, + "Leave the current IBSS cell."); + COMMAND(ibss, join, +- " [HT20|HT40+|HT40-|NOHT|5MHZ|10MHZ] [fixed-freq] [] [beacon-interval ]" ++ " [HT20|HT40+|HT40-|HT80|HT80+80|HT160|NOHT|5MHZ|10MHZ] [fixed-freq] [] [beacon-interval ]" + " [basic-rates ] [mcast-rate ] " + "[key d:0:abcde]", + NL80211_CMD_JOIN_IBSS, 0, CIB_NETDEV, join_ibss, -- 2.5.0