From 69dfc4fe32732c01ecd320aa94443e995784146b Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Thu, 18 Oct 2007 15:12:39 +0200 Subject: [PATCH] add support for set/get supported rates in assoc resp packets --- src/devices/wifi/mgt-headers.cc | 10 ++++++++++ src/devices/wifi/mgt-headers.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/devices/wifi/mgt-headers.cc b/src/devices/wifi/mgt-headers.cc index 8b45ad364..bc08231d0 100644 --- a/src/devices/wifi/mgt-headers.cc +++ b/src/devices/wifi/mgt-headers.cc @@ -288,11 +288,21 @@ MgtAssocResponseHeader::GetStatusCode (void) { return m_code; } +SupportedRates +MgtAssocResponseHeader::GetSupportedRates (void) +{ + return m_rates; +} void MgtAssocResponseHeader::SetStatusCode (StatusCode code) { m_code = code; } +void +MgtAssocResponseHeader::SetSupportedRates (SupportedRates rates) +{ + m_rates = rates; +} uint32_t MgtAssocResponseHeader::GetUid (void) diff --git a/src/devices/wifi/mgt-headers.h b/src/devices/wifi/mgt-headers.h index 5e5de3267..457ab1e03 100644 --- a/src/devices/wifi/mgt-headers.h +++ b/src/devices/wifi/mgt-headers.h @@ -64,6 +64,9 @@ public: ~MgtAssocResponseHeader (); StatusCode GetStatusCode (void); + SupportedRates GetSupportedRates (void); + + void SetSupportedRates (SupportedRates rates); void SetStatusCode (StatusCode code); static uint32_t GetUid (void);