Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (4 months ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/net/wireless/ath/ath9k/common-spectral.c

    r31574 r31885  
    529529                return 0;
    530530
     531        if (!spec_priv->rfs_chan_spec_scan)
     532                return 1;
     533
    531534        /* Output buffers are full, no need to process anything
    532535         * since there is no space to put the result anyway
     
    10731076void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv)
    10741077{
    1075         if (IS_ENABLED(CONFIG_ATH9K_DEBUGFS)) {
     1078        if (IS_ENABLED(CONFIG_ATH9K_DEBUGFS) && spec_priv->rfs_chan_spec_scan) {
    10761079                relay_close(spec_priv->rfs_chan_spec_scan);
    10771080                spec_priv->rfs_chan_spec_scan = NULL;
     
    10871090                                            1024, 256, &rfs_spec_scan_cb,
    10881091                                            NULL);
     1092        if (!spec_priv->rfs_chan_spec_scan)
     1093                return;
     1094
    10891095        debugfs_create_file("spectral_scan_ctl",
    10901096                            S_IRUSR | S_IWUSR,
Note: See TracChangeset for help on using the changeset viewer.