WirelessExtController.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Ext_NetEmu_WLAN_WirelessExtController_
18 #define HH_SENF_Ext_NetEmu_WLAN_WirelessExtController_ 1
19 
20 // Custom includes
22 
23 //-/////////////////////////////////////////////////////////////////////////////////////////////////
24 
25 struct iwreq;
26 
27 namespace senf {
28 namespace emu {
29 
31  {
32  public:
33  typedef unsigned frequency_type;
34 
35  explicit WirelessExtController(std::string const & ifname);
36  explicit WirelessExtController(unsigned ifindex);
37 
38  frequency_type frequency() const;
39  std::string ssid() const;
40  senf::MACAddress cellId() const;
41 
42  private:
43  void doIoctl(int ctl, struct iwreq * data) const;
44  void getrange() const;
45 
46  std::string ifname_;
48  };
49 
50 }}
51 
52 //-/////////////////////////////////////////////////////////////////////////////////////////////////
53 //#include "WLANController.cci"
54 //#include "WLANController.ct"
55 //#include "WLANController.cti"
56 #endif
57 
58 
59 // Local Variables:
60 // mode: c++
61 // fill-column: 100
62 // comment-column: 40
63 // c-file-style: "senf"
64 // indent-tabs-mode: nil
65 // ispell-local-dictionary: "american"
66 // compile-command: "scons -u test"
67 // End:
u8 data[SPECTRAL_HT20_NUM_BINS]
WirelessExtController(std::string const &ifname)
boost::shared_ptr< SockFd > ptr