-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from microsoft/wpagetsetcmds
Add and implement IHostapd::[Get/Set]Property() commands
- Loading branch information
Showing
14 changed files
with
306 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
#include <format> | ||
|
||
#include <Wpa/WpaCommandGet.hxx> | ||
|
||
using namespace Wpa; | ||
|
||
WpaCommandGet::WpaCommandGet(std::string_view propertyName) : | ||
WpaCommand(), | ||
PropertyPayload(std::format("{} {}", ProtocolWpa::CommandPayloadGet, propertyName)), | ||
PropertyName(propertyName) | ||
{ | ||
SetPayload(PropertyPayload); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
#include <format> | ||
|
||
#include <Wpa/ProtocolWpa.hxx> | ||
#include <Wpa/WpaCommandSet.hxx> | ||
|
||
using namespace Wpa; | ||
|
||
WpaCommandSet::WpaCommandSet(std::string_view propertyName, std::string_view propertyValue) : | ||
WpaCommand(), | ||
PropertyPayload(std::format("{} {} {}", ProtocolWpa::CommandPayloadSet, propertyName, propertyValue)), | ||
PropertyName(propertyName), | ||
PropertyValue(propertyValue) | ||
{ | ||
SetPayload(PropertyPayload); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
#ifndef WPA_COMMAND_GET_HXX | ||
#define WPA_COMMAND_GET_HXX | ||
|
||
#include <string_view> | ||
#include <string> | ||
|
||
#include <Wpa/WpaCommand.hxx> | ||
|
||
namespace Wpa | ||
{ | ||
/** | ||
* @brief Representation of the "GET" command. | ||
*/ | ||
struct WpaCommandGet : | ||
public WpaCommand | ||
{ | ||
/** | ||
* @brief Construct a new WpaCommandGet object for the specified property. | ||
* | ||
* @param propertyName The name of the property to retrieve. | ||
*/ | ||
WpaCommandGet(std::string_view propertyName); | ||
|
||
std::string PropertyPayload; | ||
std::string_view PropertyName; | ||
}; | ||
|
||
} // namespace Wpa | ||
|
||
#endif // WPA_COMMAND_GET_HXX |
Oops, something went wrong.