aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-05 10:38:47 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-05 10:38:47 (GMT)
commit08eb154db52f167b7c331ea565f4fd8bb21ccbb0 (patch)
tree697a95f60b38ee4396ecdaecbfd24ebb14c93a18 /hostapd
parent5a641ae01e9d9040cf838b6c40dbda1b8c724aba (diff)
downloadhostap-08eb154db52f167b7c331ea565f4fd8bb21ccbb0.zip
hostap-08eb154db52f167b7c331ea565f4fd8bb21ccbb0.tar.gz
hostap-08eb154db52f167b7c331ea565f4fd8bb21ccbb0.tar.bz2
Fix MCS set field to be based on driver info
Instead of using hardcoded Rx MCS bitmask (indexes 0..15 enabled), use the real information from the driver capabilities.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ieee802_11.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c
index 6bad2d2..8132a6e 100644
--- a/hostapd/ieee802_11.c
+++ b/hostapd/ieee802_11.c
@@ -120,9 +120,8 @@ u8 * hostapd_eid_ht_capabilities_info(struct hostapd_data *hapd, u8 *eid)
MAX_RX_AMPDU_FACTOR_64KB);
cap->capabilities_info = host_to_le16(hapd->iconf->ht_capab);
-
- cap->supported_mcs_set[0] = 0xff;
- cap->supported_mcs_set[1] = 0xff;
+ os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set,
+ 16);
pos += sizeof(*cap);