* @NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR: maximum number of neighbors
  * to synchronize to for 11s default synchronization method (see 11C.12.2.2)
  *
+ * @NL80211_MESHCONF_HT_OPMODE: set mesh HT protection mode.
+ *
  * @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
  */
 enum nl80211_meshconf_params {
        NL80211_MESHCONF_FORWARDING,
        NL80211_MESHCONF_RSSI_THRESHOLD,
        NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR,
+       NL80211_MESHCONF_HT_OPMODE,
 
        /* keep last */
        __NL80211_MESHCONF_ATTR_AFTER_LAST,
 
        bool  dot11MeshGateAnnouncementProtocol;
        bool dot11MeshForwarding;
        s32 rssi_threshold;
+       u16 ht_opmode;
 };
 
 /**
 
                        return -ENOTSUPP;
                conf->rssi_threshold = nconf->rssi_threshold;
        }
+       if (_chg_mesh_attr(NL80211_MESHCONF_HT_OPMODE, mask)) {
+               conf->ht_opmode = nconf->ht_opmode;
+               sdata->vif.bss_conf.ht_operation_mode = nconf->ht_opmode;
+               ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_HT);
+       }
        return 0;
 }
 
 
        set_bit(MESH_WORK_HOUSEKEEPING, &ifmsh->wrkq_flags);
        ieee80211_mesh_root_setup(ifmsh);
        ieee80211_queue_work(&local->hw, &sdata->work);
+       sdata->vif.bss_conf.ht_operation_mode =
+                               ifmsh->mshcfg.ht_opmode;
        sdata->vif.bss_conf.beacon_int = MESH_DEFAULT_BEACON_INTERVAL;
        sdata->vif.bss_conf.basic_rates =
                ieee80211_mandatory_rates(sdata->local,
                                          sdata->local->hw.conf.channel->band);
        ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON |
                                                BSS_CHANGED_BEACON_ENABLED |
+                                               BSS_CHANGED_HT |
                                                BSS_CHANGED_BASIC_RATES |
                                                BSS_CHANGED_BEACON_INT);
 }
 
 
        if (sdata->vif.bss_conf.ht_operation_mode != ht_opmode) {
                sdata->vif.bss_conf.ht_operation_mode = ht_opmode;
+               sdata->u.mesh.mshcfg.ht_opmode = ht_opmode;
                changed = BSS_CHANGED_HT;
                mpl_dbg("mesh_plink %pM: protection mode changed to %d",
                        sdata->vif.addr, ht_opmode);
 
        .dot11MeshGateAnnouncementProtocol = false,
        .dot11MeshForwarding = true,
        .rssi_threshold = MESH_RSSI_THRESHOLD,
+       .ht_opmode = IEEE80211_HT_OP_MODE_PROTECTION_NONHT_MIXED,
 };
 
 const struct mesh_setup default_mesh_setup = {
 
            nla_put_u8(msg, NL80211_MESHCONF_FORWARDING,
                       cur_params.dot11MeshForwarding) ||
            nla_put_u32(msg, NL80211_MESHCONF_RSSI_THRESHOLD,
-                       cur_params.rssi_threshold))
+                       cur_params.rssi_threshold) ||
+           nla_put_u32(msg, NL80211_MESHCONF_HT_OPMODE,
+                       cur_params.ht_opmode))
                goto nla_put_failure;
        nla_nest_end(msg, pinfoattr);
        genlmsg_end(msg, hdr);
        [NL80211_MESHCONF_GATE_ANNOUNCEMENTS] = { .type = NLA_U8 },
        [NL80211_MESHCONF_FORWARDING] = { .type = NLA_U8 },
        [NL80211_MESHCONF_RSSI_THRESHOLD] = { .type = NLA_U32},
+       [NL80211_MESHCONF_HT_OPMODE] = { .type = NLA_U16},
 };
 
 static const struct nla_policy
                        mask, NL80211_MESHCONF_FORWARDING, nla_get_u8);
        FILL_IN_MESH_PARAM_IF_SET(tb, cfg, rssi_threshold,
                        mask, NL80211_MESHCONF_RSSI_THRESHOLD, nla_get_u32);
+       FILL_IN_MESH_PARAM_IF_SET(tb, cfg, ht_opmode,
+                       mask, NL80211_MESHCONF_HT_OPMODE, nla_get_u16);
        if (mask_out)
                *mask_out = mask;