All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtlwifi: add support to send beacon frame.
@ 2015-01-21  7:58 Taehee Yoo
  2015-01-22 19:27 ` Larry Finger
  2015-01-27 17:52 ` Kalle Valo
  0 siblings, 2 replies; 5+ messages in thread
From: Taehee Yoo @ 2015-01-21  7:58 UTC (permalink / raw)
  To: Larry.Finger; +Cc: linux-wireless, Taehee Yoo

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(+)

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] rtlwifi: add support to send beacon frame.
  2015-01-21  7:58 [PATCH] rtlwifi: add support to send beacon frame Taehee Yoo
@ 2015-01-22 19:27 ` Larry Finger
  2015-01-27 17:52 ` Kalle Valo
  1 sibling, 0 replies; 5+ messages in thread
From: Larry Finger @ 2015-01-22 19:27 UTC (permalink / raw)
  To: Taehee Yoo; +Cc: linux-wireless

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rtlwifi: add support to send beacon frame.
  2015-01-21  7:58 [PATCH] rtlwifi: add support to send beacon frame Taehee Yoo
  2015-01-22 19:27 ` Larry Finger
@ 2015-01-27 17:52 ` Kalle Valo
  1 sibling, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2015-01-27 17:52 UTC (permalink / raw)
  To: Taehee Yoo; +Cc: Larry.Finger, linux-wireless, Taehee Yoo


> 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>
> Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rtlwifi: add support to send beacon frame.
  2015-01-22 10:29 [PATCH] " Yeoh Chun-Yeow
@ 2015-01-22 10:53 ` ap420073 .
  0 siblings, 0 replies; 5+ messages in thread
From: ap420073 . @ 2015-01-22 10:53 UTC (permalink / raw)
  To: Yeoh Chun-Yeow; +Cc: linux-wireless

i tested rtl8192cu chiset with rtl8192cufw_TMSC.bin in kernel 3.19.0-rc5.
it worked right.

2015-01-22 19:29 GMT+09:00 Yeoh Chun-Yeow <yeohchunyeow@gmail.com>:
> Which firmware that you used to test this? And which chipset?
>
> ----
> Chun-Yeow
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rtlwifi: add support to send beacon frame.
@ 2015-01-22 10:29 Yeoh Chun-Yeow
  2015-01-22 10:53 ` ap420073 .
  0 siblings, 1 reply; 5+ messages in thread
From: Yeoh Chun-Yeow @ 2015-01-22 10:29 UTC (permalink / raw)
  To: linux-wireless

Which firmware that you used to test this? And which chipset?

----
Chun-Yeow

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-27 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-21  7:58 [PATCH] rtlwifi: add support to send beacon frame Taehee Yoo
2015-01-22 19:27 ` Larry Finger
2015-01-27 17:52 ` Kalle Valo
2015-01-22 10:29 [PATCH] " Yeoh Chun-Yeow
2015-01-22 10:53 ` ap420073 .

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.