Changeset 31393


Ignore:
Timestamp:
Feb 14, 2017, 9:59:35 PM (6 days ago)
Author:
brainslayer
Message:

may correct repeater modes for vht160 and vht80 with new side channel property feature

Location:
src/router/hostapd-2016-09-05
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/router/hostapd-2016-09-05/hostapd/ctrl_iface.c

    r30765 r31393  
    184184                        if (conf->secondary_channel==-1)                       
    185185                                conf->vht_oper_centr_freq_seg0_idx = conf->channel - 6;
     186                } else if ((val = get_option(opt, "sec_idx0="))) {
     187                        conf->vht_oper_centr_freq_seg0_idx = val;
     188                } else if ((val = get_option(opt, "sec_idx1="))) {
     189                        conf->vht_oper_centr_freq_seg1_idx = val;
    186190                } else if ((val = get_option(opt, "hw_mode=")))
    187191                        conf->hw_mode = atoi(val);
  • src/router/hostapd-2016-09-05/wpa_supplicant/bss.c

    r30765 r31393  
    292292        struct ieee80211_ht_capabilities *capab;
    293293        struct ieee80211_ht_operation *oper;
     294        struct ieee80211_vht_operation *vht_oper;
    294295        struct ieee802_11_elems elems;
    295296
     
    310311        capab = (struct ieee80211_ht_capabilities *) elems.ht_capabilities;
    311312        oper = (struct ieee80211_ht_operation *) elems.ht_operation;
     313        vht_oper = (struct ieee80211_vht_operation *) elems.vht_operation;
     314
    312315        if (capab)
    313316                dst->ht_capab = le_to_host16(capab->ht_capabilities_info);
    314317        if (oper)
    315318                dst->ht_param = oper->ht_param;
     319        if (vht_oper)
     320                dst->vht_oper = vht_oper;
    316321
    317322        calculate_update_time(fetch_time, src->age, &dst->last_update);
  • src/router/hostapd-2016-09-05/wpa_supplicant/bss.h

    r30765 r31393  
    8080        /** Length of SSID */
    8181        size_t ssid_len;
     82       
     83        struct ieee80211_vht_operation *vht_oper;
    8284        /** HT capabilities */
    8385        u16 ht_capab;
  • src/router/hostapd-2016-09-05/wpa_supplicant/wpa_supplicant.c

    r30765 r31393  
    148148
    149149        hw_mode = ieee80211_freq_to_chan(bss->freq, &channel);
     150        if (bss->vht_oper) {
     151        if (asprintf(&cmd, "UPDATE channel=%d frequency=%d chwidth=%d sec_chan=%d sec_idx0=%d sec_idx1=%d hw_mode=%d ieee80211n=%d",
     152                     channel, bss->freq,bss->vht_oper->vht_op_info_chwidth, sec_chan, bss->vht_oper->vht_op_info_chan_center_freq_seg0_idx, bss->vht_oper->vht_op_info_chan_center_freq_seg1_idx, hw_mode, !!bss->ht_capab) < 0)
     153                return -1;
     154        } else {
    150155        if (asprintf(&cmd, "UPDATE channel=%d frequency=%d sec_chan=%d hw_mode=%d ieee80211n=%d",
    151156                     channel, bss->freq, sec_chan, hw_mode, !!bss->ht_capab) < 0)
    152157                return -1;
    153 
     158        }
    154159        ret = wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL);
    155160        free(cmd);
Note: See TracChangeset for help on using the changeset viewer.