[PATCH 1/2] wcn36xx: don't pad beacons for mesh
Kalle Valo
kvalo at qca.qualcomm.com
Mon Mar 17 04:10:11 EDT 2014
Jason Mobarak <jam at cozybit.com> writes:
> 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;
You should add a comment to the code as well why padding cannot be used.
--
Kalle Valo
More information about the wcn36xx
mailing list