Changeset 31417


Ignore:
Timestamp:
Feb 17, 2017, 2:22:35 PM (6 months ago)
Author:
brainslayer
Message:

correct autochannel settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/libutils/mac80211autochannel.c

    r31254 r31417  
    362362
    363363        /* if HT40, VHT80 or VHT160 auto channel is requested, check if desired channel is capabile of that operation mode, if not, move it to the bottom of the list */
    364         if ((_htflags & AUTO_FORCEHT40 || _htflags & AUTO_FORCEVHT80 || _htflags & AUTO_FORCEVHT160) && !chan->luu && !chan->ull) {
     364        if ((_htflags & AUTO_FORCEHT40) && !chan->luu && !chan->ull) {
    365365                fprintf(stderr, "channel %d is not ht capable, set set quality to zero\n", chan->freq);
     366                return 0;
     367        }
     368        if ((_htflags & AUTO_FORCEVHT80) && !chan->ulu && !chan->lul) {
     369                fprintf(stderr, "channel %d is not vht80 capable, set set quality to zero\n", chan->freq);
     370                return 0;
     371        }
     372        if ((_htflags & AUTO_FORCEVHT160) && !chan->uuu && !chan->lll) {
     373                fprintf(stderr, "channel %d is not vht160 capable, set set quality to zero\n", chan->freq);
    366374                return 0;
    367375        }
Note: See TracChangeset for help on using the changeset viewer.