From patchwork Fri Jan 23 08:59:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 5691511 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@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 7CC19C058D for ; Fri, 23 Jan 2015 08:59:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B511E202E5 for ; Fri, 23 Jan 2015 08:59:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 977FB202BE for ; Fri, 23 Jan 2015 08:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753447AbbAWI7i (ORCPT ); Fri, 23 Jan 2015 03:59:38 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:52834 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850AbbAWI7i (ORCPT ); Fri, 23 Jan 2015 03:59:38 -0500 Received: by mail-pa0-f53.google.com with SMTP id kx10so4588770pab.12 for ; Fri, 23 Jan 2015 00:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=A7xiZHDaX/1ajLnekDig2WNByc0nDHEkrbYyidpY94M=; b=TomiwncbypYt6NBussDMzzJiOM33n9B5m5eG0EDSlYVxs4LKmSXeugKGK4AMYdr3kR iGzNDMxtyoVcwuzA/Ee5QgOQQXgvgEMfayQJ1ZIoYoUxwZmleYPzG+ZcwvPbzxXgdx4M L0ZVn6+LTeRvRBljUoMTrvb0RWdxw7tNEDOEDVimCza7miWznwOScxV5i8RNfohryN3C lalD2rD8rq71NtRQkbAaOUYFoS50ZRSMqNQJ3yQB7+kAqBZStQUt1pwmFsuWlIg2rUUR pYhZtzAxGlti4qBMjQNqr6Y1e2N6Z2gTydUg6fLxyBa21PNPuAL4EnlVAEDrMRekKq6L WMzQ== X-Received: by 10.70.138.37 with SMTP id qn5mr9652238pdb.118.1422003577285; Fri, 23 Jan 2015 00:59:37 -0800 (PST) Received: from localhost.localdomain ([58.26.233.145]) by mx.google.com with ESMTPSA id gr7sm1165720pbc.75.2015.01.23.00.59.34 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Jan 2015 00:59:36 -0800 (PST) From: Chun-Yeow Yeoh To: linux-wireless@vger.kernel.org Cc: Larry.Finger@lwfinger.net, linville@tuxdriver.com, Chun-Yeow Yeoh Subject: [PATCH] rtl8192cu: fix the mesh beaconing Date: Fri, 23 Jan 2015 16:59:24 +0800 Message-Id: <1422003564-22414-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 2.2.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 Patch "rtlwifi: add support to send beacon frame" allows the beaconing of rtl8192cu. But mesh beaconing is not working. Fix this. Signed-off-by: Chun-Yeow Yeoh Acked-by: Larry Finger --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index 5513217..e5a7c4f 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c @@ -1509,6 +1509,7 @@ void rtl92cu_set_beacon_related_registers(struct ieee80211_hw *hw) /* TODO: Modify later (Find the right parameters) * NOTE: Fix test chip's bug (about contention windows's randomness) */ if ((mac->opmode == NL80211_IFTYPE_ADHOC) || + (mac->opmode == NL80211_IFTYPE_MESH_POINT) || (mac->opmode == NL80211_IFTYPE_AP)) { rtl_write_byte(rtlpriv, REG_RXTSF_OFFSET_CCK, 0x50); rtl_write_byte(rtlpriv, REG_RXTSF_OFFSET_OFDM, 0x50);