From 7d7aae59292bc8a6b2cf978db8f4eee632ebdd68 Mon Sep 17 00:00:00 2001 From: Ulf Wetzker Date: Wed, 8 Apr 2015 14:45:56 +0200 Subject: [PATCH] Made rsn_information() a const member function to make Dot11ManagementFrame immutable --- include/tins/dot11/dot11_mgmt.h | 2 +- src/dot11/dot11_mgmt.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tins/dot11/dot11_mgmt.h b/include/tins/dot11/dot11_mgmt.h index 3e4244d..17a4bfd 100644 --- a/include/tins/dot11/dot11_mgmt.h +++ b/include/tins/dot11/dot11_mgmt.h @@ -834,7 +834,7 @@ public: * * \return std::string containing the ssid. */ - RSNInformation rsn_information(); + RSNInformation rsn_information() const; /** * \brief Helper method to search for this PDU's SSID. diff --git a/src/dot11/dot11_mgmt.cpp b/src/dot11/dot11_mgmt.cpp index d61eeaa..8a34e26 100644 --- a/src/dot11/dot11_mgmt.cpp +++ b/src/dot11/dot11_mgmt.cpp @@ -369,7 +369,7 @@ void Dot11ManagementFrame::vendor_specific(const vendor_specific_type &data) { // Getters -RSNInformation Dot11ManagementFrame::rsn_information() { +RSNInformation Dot11ManagementFrame::rsn_information() const { return search_and_convert(RSN); }