Search Linux Wireless

Re: [RFC 1/7] hostapd: implement dfs drv ops functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 26, 2012 at 4:41 AM, Victor Goldenshtein <victorg@xxxxxx> wrote:
> Add nl80211 driver operation functions:
> hostapd_enable_tx – to enable tx on DFS channel after
> channel availability check.
> hostapd_channel_switch – to handle channel switch request.
> hostapd_start_radar_detection – to enable radar detection
> on DFS channel.
>
> Signed-off-by: Victor Goldenshtein <victorg@xxxxxx>
> ---
>  src/ap/ap_config.h   |    3 +++
>  src/ap/ap_drv_ops.c  |   34 ++++++++++++++++++++++++++++++++++
>  src/ap/ap_drv_ops.h  |    4 ++++
>  src/drivers/driver.h |   34 ++++++++++++++++++++++++++++++++++
>  4 files changed, 75 insertions(+), 0 deletions(-)
>
> diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
> index 485092d..eddc9b7 100644
> --- a/src/ap/ap_config.h
> +++ b/src/ap/ap_config.h
> @@ -410,6 +410,9 @@ struct hostapd_config {
>
>        int ieee80211d;
>
> +       /* DFS */
> +       int channel_switch_count;
> +
>        struct hostapd_tx_queue_params tx_queue[NUM_TX_QUEUES];
>
>        /*
> diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
> index 429c187..628f90e 100644
> --- a/src/ap/ap_drv_ops.c
> +++ b/src/ap/ap_drv_ops.c
> @@ -590,3 +590,37 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
>        return hapd->driver->sta_disassoc(hapd->drv_priv, hapd->own_addr, addr,
>                                          reason);
>  }
> +
> +
> +int hostapd_enable_tx(struct hostapd_data *hapd)
> +{
> +       if (!hapd->driver || !hapd->driver->enable_tx)
> +               return 0;
> +       return hapd->driver->enable_tx(hapd->drv_priv);

No checks on if the channel is DFS, if we started DFS, etc?

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux