OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 IITP RAS | 3 * Copyright (c) 2009 IITP RAS |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 28 matching lines...) Expand all Loading... |
39 { | 39 { |
40 public: | 40 public: |
41 /** | 41 /** |
42 * C-tor | 42 * C-tor |
43 * | 43 * |
44 * \param ssid is SSID for beacon header | 44 * \param ssid is SSID for beacon header |
45 * \param rates is a set of supported rates | 45 * \param rates is a set of supported rates |
46 * \param us beacon interval in microseconds | 46 * \param us beacon interval in microseconds |
47 */ | 47 */ |
48 MeshWifiBeacon (Ssid ssid, SupportedRates rates, uint64_t us); | 48 MeshWifiBeacon (Ssid ssid, SupportedRates rates, uint64_t us); |
49 /// Read standard Wifi beacon header | 49 /** |
| 50 * Read standard Wifi beacon header |
| 51 * |
| 52 * \returns the management beacon header |
| 53 */ |
50 MgtBeaconHeader BeaconHeader () const { return m_header; } | 54 MgtBeaconHeader BeaconHeader () const { return m_header; } |
51 /// Add information element | 55 /** |
| 56 * Add information element |
| 57 * |
| 58 * \param ie the wifi information element |
| 59 */ |
52 void AddInformationElement (Ptr<WifiInformationElement> ie); | 60 void AddInformationElement (Ptr<WifiInformationElement> ie); |
53 | 61 |
54 /** | 62 /** |
55 * Create wifi header for beacon frame. | 63 * Create wifi header for beacon frame. |
56 * | 64 * |
57 * \param address is sender address | 65 * \param address is sender address |
58 * \param mpAddress is mesh point address | 66 * \param mpAddress is mesh point address |
59 * \returns the WifiMacHeader | 67 * \returns the WifiMacHeader |
60 */ | 68 */ |
61 WifiMacHeader CreateHeader (Mac48Address address, Mac48Address mpAddress); | 69 WifiMacHeader CreateHeader (Mac48Address address, Mac48Address mpAddress); |
62 /// Returns a beacon interval of wifi beacon | 70 /** |
| 71 * Returns a beacon interval of wifi beacon |
| 72 * |
| 73 * \returns the beacon interval time |
| 74 */ |
63 Time GetBeaconInterval () const; | 75 Time GetBeaconInterval () const; |
64 /// Create frame = { beacon header + all information elements sorted by Elemen
tId () } | 76 /** |
| 77 * Create frame = { beacon header + all information elements sorted by Element
Id () } |
| 78 * |
| 79 * \returns the frame |
| 80 */ |
65 Ptr<Packet> CreatePacket (); | 81 Ptr<Packet> CreatePacket (); |
66 | 82 |
67 private: | 83 private: |
68 /// Beacon header | 84 /// Beacon header |
69 MgtBeaconHeader m_header; | 85 MgtBeaconHeader m_header; |
70 /// List of information elements added | 86 /// List of information elements added |
71 MeshInformationElementVector m_elements; | 87 MeshInformationElementVector m_elements; |
72 }; | 88 }; |
73 | 89 |
74 } | 90 } |
75 | 91 |
76 #endif /* MESH_WIFI_BEACON_H */ | 92 #endif /* MESH_WIFI_BEACON_H */ |
OLD | NEW |