802.11 states
... each BSS membership selector contained in the
BSSMembershipSelectorSet parameter is encoded as an octet with
the MSB (bit 7) set to 1, and bits 6 through 0 are set to the
encoded value for the selector as found in Table 7-26a (e.g.: an
HT PHY BSS membership selector ...)"
for (i = 0; i < len; i++) {
int r = data[i] & 0x7f;
- if (r == BSS_MEMBERSHIP_SELECTOR_HT_PHY)
+ if (r == BSS_MEMBERSHIP_SELECTOR_HT_PHY && data[i] & 0x80)
printf("HT");
else
printf("%d.%d", r/2, 5*(r&1));