On Sun, Jan 15, 2017 at 6:35 PM, Chaitanya Tata
<[email protected]> wrote:
>
> Before enabling the DFS channels looks for support of DFS
> in interface combinations, NO_IR and DFS flags.
>
> Currently BW level checks are not supported.
>
> Tested-by: Tushar Jobanputra <[email protected]>
> Signed-off-by: Chaitanya Tata <[email protected]>
> ---
> Fix signed tag.
> ---
>  iwinfo_nl80211.c | 65 
> ++++++++++++++++++++++++++++++++++++++++++++++++++------
>  1 file changed, 59 insertions(+), 6 deletions(-)
>
> diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
> index 63b70d5..d8d2670 100644
> --- a/iwinfo_nl80211.c
> +++ b/iwinfo_nl80211.c
> @@ -2404,20 +2404,71 @@ static int nl80211_get_scanlist(const char *ifname, 
> char *buf, int *len)
>         return -1;
>  }
>
> +char *channel_width_name(enum nl80211_chan_width width)
> +{
> +       switch (width) {
> +       case NL80211_CHAN_WIDTH_20_NOHT:
> +               return "20 MHz (no HT)";
> +       case NL80211_CHAN_WIDTH_20:
> +               return "20 MHz";
> +       case NL80211_CHAN_WIDTH_40:
> +               return "40 MHz";
> +       case NL80211_CHAN_WIDTH_80:
> +               return "80 MHz";
> +       case NL80211_CHAN_WIDTH_80P80:
> +               return "80+80 MHz";
> +       case NL80211_CHAN_WIDTH_160:
> +               return "160 MHz";
> +       default:
> +               return "unknown";
> +       }
> +}
> +

I just realized that i am not using this function, it was left over
from debug prints.

>
>         nla_for_each_nested(band, attr[NL80211_ATTR_WIPHY_BANDS], 
> bands_remain)
>         {
> +               struct nlattr *is_ir,*is_dfs;
Technically this should be is_no_ir?

Will await further comments and then submit a V2.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to