> + if (s->ssid && s->ssid_len > 0 && s->ssid_len <= IEEE80211_MAX_SSID_LEN) > + qtnf_cmd_skb_put_tlv_arr(cmd_skb, WLAN_EID_SSID, s->ssid, > + s->ssid_len); > + > + if (cfg80211_chandef_valid(&s->chandef)) { > + struct qlink_tlv_chandef *chtlv = > + (struct qlink_tlv_chandef *)skb_put(cmd_skb, > + sizeof(*chtlv)); > + > + chtlv->hdr.type = cpu_to_le16(QTN_TLV_ID_CHANDEF); > + chtlv->hdr.len = sizeof(*chtlv) - sizeof(chtlv->hdr); It looks like cpu_to_le16 is needed here as well. > + qlink_chandef_cfg2q(&s->chandef, &chtlv->chan); > + } > +