[PATCH 1/2] wcn36xx: don't pad beacons for mesh

Jason Mobarak jam at cozybit.com
Wed Mar 12 19:30:15 EDT 2014


Mesh beaconing fails if padding is used, so don't pad when the interface
is operating in mesh mode.

Signed-off-by: Jason Mobarak <jam at cozybit.com>
---
 smd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/smd.c b/smd.c
index 1301f4c..3ee96df 100644
--- a/smd.c
+++ b/smd.c
@@ -1303,6 +1303,10 @@ int wcn36xx_smd_send_beacon(struct wcn36xx *wcn, struct ieee80211_vif *vif,
 
 	pvm_len = skb_beacon->data[tim_off + 1] - 3;
 	pad = TIM_MIN_PVM_SIZE - pvm_len;
+
+	if (vif->type == NL80211_IFTYPE_MESH_POINT)
+		pad = 0;
+
 	msg_body.beacon_length = skb_beacon->len + pad;
 	/* TODO need to find out why + 6 is needed */
 	msg_body.beacon_length6 = msg_body.beacon_length + 6;
-- 
1.9.0




More information about the wcn36xx mailing list