Hi Chun-Yeow,

Care to submit this patch to the list? :)

Thomas

On Thu, Aug 2, 2012 at 4:09 AM, Yeoh Chun-Yeow <[email protected]> wrote:
> Hi, Putri
>
> You can try out the following patch for authsae. Set the mcast-rate in
> the meshd section in your config file.
>
> However, the SAE action frame still transmit at lowest transmission rate.
>
> Regards,
> Chun-Yeow
>
> ----------------------------------------------------------------------------------------------------------------------------------------------
> diff --git a/ampe.h b/ampe.h
> index 1ec2938..a7e3ac5 100644
> --- a/ampe.h
> +++ b/ampe.h
> @@ -59,6 +59,7 @@ struct meshd_config {
>  #define MAX_SUPP_RATES 32
>      unsigned char rates[MAX_SUPP_RATES];
>      uint16_t ht_prot_mode;
> +    int mcast_rate;
>  };
>
>  /* the single global interface and mesh node info we're handling.
> diff --git a/linux/meshd-nl80211.c b/linux/meshd-nl80211.c
> index 75c2667..ba0baa5 100644
> --- a/linux/meshd-nl80211.c
> +++ b/linux/meshd-nl80211.c
> @@ -1056,6 +1056,8 @@ static int join_mesh_rsn(struct netlink_config_s
> *nlcfg, struct meshd_config *mc
>      NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, nlcfg->ifindex);
>      NLA_PUT(msg, NL80211_ATTR_MESH_ID, mconf->meshid_len, mconf->meshid);
>
> +    NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, mconf->mcast_rate);
> +
>      ret = send_nlmsg(nlcfg->nl_sock, msg);
>      if (ret < 0)
>          fprintf(stderr,"Mesh start failed: %d (%s)\n", ret, strerror(-ret));
> @@ -1187,6 +1189,8 @@ meshd_parse_libconfig (struct config_setting_t
> *meshd_section,
>          }
>      }
>
> +    config_setting_lookup_int(meshd_section, "mcast-rate", (long int
> *)&config->mcast_rate);
> +
>      return 0;
>  }
>
> @@ -1369,6 +1373,8 @@ int main(int argc, char *argv[])
>      mesh.band = meshd_conf.band == MESHD_11a ? IEEE80211_BAND_5GHZ
>                                                : IEEE80211_BAND_2GHZ;
>
> +    meshd_conf.mcast_rate = meshd_conf.mcast_rate * 10;
> +
>      /* this is the default in kernel as well, so no need to do anything else 
> */
>      meshd_conf.ht_prot_mode = IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED;
>
> --
> 1.7.10.4
> _______________________________________________
> Devel mailing list
> [email protected]
> http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to