Search Linux Wireless

Re: [PATCH] cfg80211: fix start_radar_detection issue

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

 



On Wed, 2014-05-14 at 13:25 +0200, Janusz Dziedzic wrote:
> After patch:
> cfg80211/mac80211: refactor cfg80211_chandef_dfs_required()
> 
> start_radar_detection always fail with -EINVAL.
> 
> Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx>
> ---
>  net/wireless/chan.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/wireless/chan.c b/net/wireless/chan.c
> index 84d686e..7a679a6 100644
> --- a/net/wireless/chan.c
> +++ b/net/wireless/chan.c
> @@ -340,6 +340,7 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
>  	case NL80211_IFTYPE_AP:
>  	case NL80211_IFTYPE_P2P_GO:
>  	case NL80211_IFTYPE_MESH_POINT:
> +	case NL80211_IFTYPE_UNSPECIFIED:
>  		width = cfg80211_chandef_get_width(chandef);
>  		if (width < 0)
>  			return -EINVAL;
> @@ -370,7 +371,6 @@ int cfg80211_chandef_dfs_required(struct wiphy *wiphy,
>  	case NL80211_IFTYPE_AP_VLAN:
>  	case NL80211_IFTYPE_WDS:
>  	case NL80211_IFTYPE_P2P_DEVICE:
> -	case NL80211_IFTYPE_UNSPECIFIED:
>  		break;
>  	case NUM_NL80211_IFTYPES:
>  		WARN_ON(1);

Yep, my mistake. :(

I guess this will fix cfg80211_reg_can_beacon() as well...

Acked-by: Luciano Coelho <luciano.coelho@xxxxxxxxx>

--
Luca.
��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux