LEFT | RIGHT |
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) 2006, 2009 INRIA | 3 * Copyright (c) 2006, 2009 INRIA |
4 * Copyright (c) 2009 MIRKO BANCHI | 4 * Copyright (c) 2009 MIRKO BANCHI |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 /** | 89 /** |
90 * \returns the interval between two beacon transmissions. | 90 * \returns the interval between two beacon transmissions. |
91 */ | 91 */ |
92 Time GetBeaconInterval (void) const; | 92 Time GetBeaconInterval (void) const; |
93 /** | 93 /** |
94 * Start beacon transmission immediately. | 94 * Start beacon transmission immediately. |
95 */ | 95 */ |
96 void StartBeaconing (void); | 96 void StartBeaconing (void); |
97 | 97 |
98 private: | 98 private: |
99 virtual void Receive (Ptr<Packet> packet, const WifiMacHeader *hdr, RadiotapHe
ader radiotaphdr); | 99 virtual void Receive (Ptr<Packet> packet, const WifiMacHeader *hdr, const Radi
otapHeader *radiotaphdr); |
100 virtual void TxOk (const WifiMacHeader &hdr); | 100 virtual void TxOk (const WifiMacHeader &hdr); |
101 virtual void TxFailed (const WifiMacHeader &hdr); | 101 virtual void TxFailed (const WifiMacHeader &hdr); |
102 | 102 |
103 /** | 103 /** |
104 * This method is called to de-aggregate an A-MSDU and forward the | 104 * This method is called to de-aggregate an A-MSDU and forward the |
105 * constituent packets up the stack. We override the WifiMac version | 105 * constituent packets up the stack. We override the WifiMac version |
106 * here because, as an AP, we also need to think about redistributing | 106 * here because, as an AP, we also need to think about redistributing |
107 * to other associated STAs. | 107 * to other associated STAs. |
108 * | 108 * |
109 * \param aggregatedPacket the Packet containing the A-MSDU. | 109 * \param aggregatedPacket the Packet containing the A-MSDU. |
(...skipping 15 matching lines...) Expand all Loading... |
125 | 125 |
126 Ptr<DcaTxop> m_beaconDca; | 126 Ptr<DcaTxop> m_beaconDca; |
127 Time m_beaconInterval; | 127 Time m_beaconInterval; |
128 bool m_enableBeaconGeneration; | 128 bool m_enableBeaconGeneration; |
129 EventId m_beaconEvent; | 129 EventId m_beaconEvent; |
130 }; | 130 }; |
131 | 131 |
132 } // namespace ns3 | 132 } // namespace ns3 |
133 | 133 |
134 #endif /* AP_WIFI_MAC_H */ | 134 #endif /* AP_WIFI_MAC_H */ |
LEFT | RIGHT |