Search Linux Wireless

Re: [PATCH 4/6] ath9k: Only spectral scan relay file when it was created

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

 



Sven Eckelmann <sven@xxxxxxxxxxxxx> writes:

> The relay file depends on relayfs. Trying to close this file without having
> ATH9K_DEBUGFS (and therefore RELAY) activated causes build failures.
>
> Signed-off-by: Sven Eckelmann <sven@xxxxxxxxxxxxx>

[...]

> +#ifdef CONFIG_ATH9K_DEBUGFS
>  	if (sc->rfs_chan_spec_scan) {
>  		relay_close(sc->rfs_chan_spec_scan);
>  		sc->rfs_chan_spec_scan = NULL;
>  	}
> +#endif

Instead of ugly #ifdef you could do something like this:

        if (config_enabled(CONFIG_ATH6KL_REGDOMAIN) &&

I think you could use that elsehwere in your patchset as well, but I
didn't check that carefully.

-- 
Kalle Valo
--
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 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