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); }