linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Taehee Yoo <ap420073@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rtlwifi: add support to send beacon frame.
Date: Thu, 22 Jan 2015 13:27:57 -0600	[thread overview]
Message-ID: <54C14F3D.30206@lwfinger.net> (raw)
In-Reply-To: <1421827099-17975-1-git-send-email-ap420073@gmail.com>

On 01/21/2015 01:58 AM, Taehee Yoo wrote:
> 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 <ap420073@gmail.com>
> ---
>   drivers/net/wireless/rtlwifi/core.c | 11 +++++++++++
>   1 file changed, 11 insertions(+)

Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

Thanks,

Larry

>
> 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 &&
>


  reply	other threads:[~2015-01-22 19:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21  7:58 [PATCH] rtlwifi: add support to send beacon frame Taehee Yoo
2015-01-22 19:27 ` Larry Finger [this message]
2015-01-27 17:52 ` Kalle Valo
  -- strict thread matches above, loose matches on Subject: below --
2015-01-22 10:29 [PATCH] " Yeoh Chun-Yeow
2015-01-22 10:53 ` ap420073 .

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C14F3D.30206@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=ap420073@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).