From patchwork Wed Jan 21 07:58:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taehee Yoo X-Patchwork-Id: 5675751 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 244A1C058D for ; Wed, 21 Jan 2015 07:58:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4AE4520520 for ; Wed, 21 Jan 2015 07:58:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6EF04204D5 for ; Wed, 21 Jan 2015 07:58:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752376AbbAUH6a (ORCPT ); Wed, 21 Jan 2015 02:58:30 -0500 Received: from mail-pd0-f181.google.com ([209.85.192.181]:59150 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbbAUH6a (ORCPT ); Wed, 21 Jan 2015 02:58:30 -0500 Received: by mail-pd0-f181.google.com with SMTP id g10so15260413pdj.12 for ; Tue, 20 Jan 2015 23:58:29 -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=4uKa2V1ArJK2FsNuegZTqZjSvP753V6KycI3zFfyb3M=; b=axzoHRDunesn+VGnIVnbvpK4UqkE3nR1xkSb58Ui725ip15Vmb5zb5aiiJl/l0hBWT QM8B7OwbKHMOzHcqbVjmKw0RrI4uqBHvv6IdnbaHgAr2R60TxiJk7FGEENplVZDSUahk 1ozwpElB0iDbDbAg5miXOXA/XqoTF4P1oRCQF44tUTlKZqM8WknV1tgz4G1XB/0J4EJN BFQFdja5N2DY5IiqS8Tf1Amh0U891e8C2/QahU8hT7mRHi8VXwEaI+XKxShlyM2OZSqI TTBn82GGGgI2QHh+koi0HFu0nGofrHutLNHzzmtnjyGvC0gNFXDy5iQTB3CL/DLrXNdh PN/w== X-Received: by 10.68.110.161 with SMTP id ib1mr60582895pbb.36.1421827109762; Tue, 20 Jan 2015 23:58:29 -0800 (PST) Received: from localhost.localdomain ([210.118.75.111]) by mx.google.com with ESMTPSA id pg6sm4959194pbb.96.2015.01.20.23.58.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jan 2015 23:58:28 -0800 (PST) From: Taehee Yoo To: Larry.Finger@lwfinger.net Cc: linux-wireless@vger.kernel.org, Taehee Yoo Subject: [PATCH] rtlwifi: add support to send beacon frame. Date: Wed, 21 Jan 2015 16:58:19 +0900 Message-Id: <1421827099-17975-1-git-send-email-ap420073@gmail.com> X-Mailer: git-send-email 1.9.1 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 In AP mode, beacon frame is necessary to keep connection. this patch adds a sending beacon frame routine in initialization routine. Signed-off-by: Taehee Yoo Acked-by: Larry Finger --- drivers/net/wireless/rtlwifi/core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index eb20316..a31a127 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c @@ -1010,6 +1010,16 @@ static int rtl_op_conf_tx(struct ieee80211_hw *hw, return 0; } +static void send_beacon_frame(struct ieee80211_hw *hw, + struct ieee80211_vif *vif) +{ + struct rtl_priv *rtlpriv = rtl_priv(hw); + struct sk_buff *skb = ieee80211_beacon_get(hw, vif); + + if (skb) + rtlpriv->intf_ops->adapter_tx(hw, NULL, skb, NULL); +} + static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, @@ -1040,6 +1050,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw, if (rtlpriv->cfg->ops->linked_set_reg) rtlpriv->cfg->ops->linked_set_reg(hw); + send_beacon_frame(hw, vif); } } if ((changed & BSS_CHANGED_BEACON_ENABLED &&