Search Linux Wireless

Re: [PATCH 06/27] qtnfmac: pass full channel definition to device on start_ap command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +	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);
> +	}
> +



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux