Search Linux Wireless

Re: [PATCH v9 2/2] mac80211: Support ht-cap over-rides.

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

 



On Fri, 2011-11-18 at 09:31 -0800, Ben Greear wrote:

> >>> This looks like it has endian bugs. Note that sband->ht_cap is
> >>> ieee80211_sta_ht_cap, whereas sdata->u.mgd.ht_capa[_mask] is
> >>> ieee80211_ht_cap -- the latter is in IEEE format (LE) while the former
> >>> is in a complete different format that's easier to digest for the
> >>> CPU :-)
> >>
> >> So, the ht-caps&  mask data coming from user-space via netlink
> >> should be in network-byte order?
> >
> > It is that way right now, and that makes sense.
> 
> Ok, I think I am using host-byte-order currently in my iw
> and hostap patches, which is why everything works for me.
> 
> But, I'll flip that all around....

You're using x86 so 802.11 byte order == CPU byte order...

Be careful: "network byte order" usually means big endian...

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux