[PATCH] libertas: support for mesh autostart on firmware 5.220.11
Dan Williams
dcbw at redhat.com
Sun Apr 29 16:57:37 EDT 2007
On Fri, 2007-04-27 at 18:04 -0700, Luis Carlos Cobo Rus wrote:
> ---
> drivers/net/wireless/libertas/cmdresp.c | 10 +++
> drivers/net/wireless/libertas/host.h | 1 +
> 2 files changed, 11 insertions(+), 0 deletions(-)
Applied, thanks.
> diff --git a/drivers/net/wireless/libertas/cmdresp.c
> b/drivers/net/wireless/libertas/cmdresp.c
> index 1ab9706..b286d2d 100644
> --- a/drivers/net/wireless/libertas/cmdresp.c
> +++ b/drivers/net/wireless/libertas/cmdresp.c
> @@ -1008,6 +1008,16 @@ int libertas_process_event(wlan_private * priv)
> case MACREG_INT_CODE_SNR_HIGH:
> lbs_pr_alert( "EVENT: SNR_HIGH\n");
> break;
> +
> + case MACREG_INT_CODE_MESH_AUTO_STARTED:
> + lbs_pr_alert( "EVENT: MESH_AUTO_STARTED\n");
> + adapter->connect_status = libertas_connected ;
> + if (priv->mesh_open == 1) {
> + netif_wake_queue(priv->mesh_dev) ;
> + netif_carrier_on(priv->mesh_dev) ;
> + }
> + adapter->mode = IW_MODE_ADHOC ;
> + break;
>
> default:
> lbs_pr_alert( "EVENT: unknown event id: %#x\n",
> diff --git a/drivers/net/wireless/libertas/host.h
> b/drivers/net/wireless/libertas/host.h
> index 2d18db6..21d94d6 100644
> --- a/drivers/net/wireless/libertas/host.h
> +++ b/drivers/net/wireless/libertas/host.h
> @@ -336,5 +336,6 @@ enum cmd_mesh_access_opts {
> #define MACREG_INT_CODE_MAX_FAIL 0x0000001b
> #define MACREG_INT_CODE_RSSI_HIGH 0x0000001c
> #define MACREG_INT_CODE_SNR_HIGH 0x0000001d
> +#define MACREG_INT_CODE_MESH_AUTO_STARTED 0x00000023
>
> #endif /* _HOST_H_ */
> --
> 1.4.4.2
>
More information about the libertas-dev
mailing list