author | Sébastien Deronne <sebastien.deronne@gmail.com> |
Sun, 21 Jun 2015 00:23:45 +0200 | |
changeset 11450 | 9f4ae69f12b7 |
parent 11352 | a1f6f647d516 |
permissions | -rw-r--r-- |
7385
10beb0e53130
standardize emacs c++ mode comments
Vedran Miletić <rivanvx@gmail.com>
parents:
7141
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
4408 | 2 |
/* |
3 |
* Copyright (c) 2006, 2009 INRIA |
|
4 |
* Copyright (c) 2009 MIRKO BANCHI |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or modify |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
7 |
* it under the terms of the GNU General Public License version 2 as |
4408 | 8 |
* published by the Free Software Foundation; |
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 |
* |
|
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
19 |
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
20 |
* Mirko Banchi <mk.banchi@gmail.com> |
4408 | 21 |
*/ |
22 |
#ifndef EDCA_TXOP_N_H |
|
23 |
#define EDCA_TXOP_N_H |
|
24 |
||
25 |
#include "ns3/object.h" |
|
26 |
#include "ns3/mac48-address.h" |
|
27 |
#include "ns3/packet.h" |
|
28 |
#include "wifi-mode.h" |
|
29 |
#include "wifi-mac-header.h" |
|
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6485
diff
changeset
|
30 |
#include "wifi-remote-station-manager.h" |
4408 | 31 |
#include "qos-utils.h" |
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
32 |
#include "dcf.h" |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
33 |
#include "ctrl-headers.h" |
6485
429560e899ab
Bug 842 - During retransmission of a BAR i must wait for a Block ack response and not for a normal ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
34 |
#include "block-ack-manager.h" |
4408 | 35 |
#include <map> |
36 |
#include <list> |
|
37 |
||
38 |
namespace ns3 { |
|
39 |
||
40 |
class DcfState; |
|
41 |
class DcfManager; |
|
42 |
class MacLow; |
|
43 |
class MacTxMiddle; |
|
6673
ec22aa763e2d
Bug 978: Consolidate Wi-Fi MAC high functionality
Dean Armstrong <deanarm@gmail.com>
parents:
6485
diff
changeset
|
44 |
class WifiMac; |
4408 | 45 |
class WifiMacParameters; |
46 |
class WifiMacQueue; |
|
47 |
class RandomStream; |
|
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
48 |
class QosBlockedDestinations; |
4408 | 49 |
class MsduAggregator; |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
50 |
class MgtAddBaResponseHeader; |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
51 |
class BlockAckManager; |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
52 |
class MgtDelBaHeader; |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
53 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
54 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
55 |
* Enumeration for type of station |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
56 |
*/ |
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
57 |
enum TypeOfStation |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
58 |
{ |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
59 |
STA, |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
60 |
AP, |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
61 |
ADHOC_STA, |
10139 | 62 |
MESH, |
63 |
HT_STA, |
|
64 |
HT_AP, |
|
10459
f2e90c12a44f
base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
10139
diff
changeset
|
65 |
HT_ADHOC_STA, |
f2e90c12a44f
base implementation of the IEEE 802.11p standard
Junling Bu <linlinjavaer@gmail.com>
parents:
10139
diff
changeset
|
66 |
OCB |
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
67 |
}; |
4408 | 68 |
|
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
69 |
|
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
70 |
/** |
7139
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
71 |
* \ingroup wifi |
79dd02ed46ec
doxygen wifi module grouping all wifi classes
Nicola Baldo <nbaldo@cttc.es>
parents:
7013
diff
changeset
|
72 |
* This queue contains packets for a particular access class. |
4408 | 73 |
* possibles access classes are: |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
74 |
* |
4408 | 75 |
* -AC_VO : voice, tid = 6,7 ^ |
76 |
* -AC_VI : video, tid = 4,5 | |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
77 |
* -AC_BE : best-effort, tid = 0,3 | priority |
4408 | 78 |
* -AC_BK : background, tid = 1,2 | |
7141
072fb225b714
run check-style.py on src/wifi
Nicola Baldo <nicola@baldo.biz>
parents:
7139
diff
changeset
|
79 |
* |
4408 | 80 |
* For more details see section 9.1.3.1 in 802.11 standard. |
81 |
*/ |
|
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
82 |
class EdcaTxopN : public Dcf |
4408 | 83 |
{ |
84 |
public: |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
85 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
86 |
* typedef for a callback to invoke when a |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
87 |
* packet transmission was completed successfully. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
88 |
*/ |
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
89 |
typedef Callback <void, const WifiMacHeader&> TxOk; |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
90 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
91 |
* typedef for a callback to invoke when a |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
92 |
* packet transmission was failed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
93 |
*/ |
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
94 |
typedef Callback <void, const WifiMacHeader&> TxFailed; |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
95 |
|
4408 | 96 |
static TypeId GetTypeId (void); |
97 |
EdcaTxopN (); |
|
98 |
virtual ~EdcaTxopN (); |
|
99 |
void DoDispose (); |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
100 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
101 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
102 |
* Set MacLow associated with this EdcaTxopN. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
103 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
104 |
* \param low MacLow |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
105 |
*/ |
4408 | 106 |
void SetLow (Ptr<MacLow> low); |
107 |
void SetTxMiddle (MacTxMiddle *txMiddle); |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
108 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
109 |
* Set DcfManager this EdcaTxopN is associated to. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
110 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
111 |
* \param manager DcfManager |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
112 |
*/ |
4408 | 113 |
void SetManager (DcfManager *manager); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
114 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
115 |
* \param callback the callback to invoke when a |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
116 |
* packet transmission was completed successfully. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
117 |
*/ |
4408 | 118 |
void SetTxOkCallback (TxOk callback); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
119 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
120 |
* \param callback the callback to invoke when a |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
121 |
* packet transmission was completed unsuccessfully. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
122 |
*/ |
4408 | 123 |
void SetTxFailedCallback (TxFailed callback); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
124 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
125 |
* Set WifiRemoteStationsManager this EdcaTxopN is associated to. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
126 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
127 |
* \param remoteManager WifiRemoteStationManager |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
128 |
*/ |
4408 | 129 |
void SetWifiRemoteStationManager (Ptr<WifiRemoteStationManager> remoteManager); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
130 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
131 |
* Set type of station with the given type. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
132 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
133 |
* \param type |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
134 |
*/ |
4408 | 135 |
void SetTypeOfStation (enum TypeOfStation type); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
136 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
137 |
* Return type of station. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
138 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
139 |
* \return type of station |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
140 |
*/ |
4408 | 141 |
enum TypeOfStation GetTypeOfStation (void) const; |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
142 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
143 |
* Return the packet queue associated with this EdcaTxopN. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
144 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
145 |
* \return WifiMacQueue |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
146 |
*/ |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
147 |
Ptr<WifiMacQueue > GetEdcaQueue () const; |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
148 |
|
4720
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
149 |
virtual void SetMinCw (uint32_t minCw); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
150 |
virtual void SetMaxCw (uint32_t maxCw); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
151 |
virtual void SetAifsn (uint32_t aifsn); |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
152 |
virtual uint32_t GetMinCw (void) const; |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
153 |
virtual uint32_t GetMaxCw (void) const; |
15221757964f
bug 641: CwMin setting for 802.11b
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4421
diff
changeset
|
154 |
virtual uint32_t GetAifsn (void) const; |
4408 | 155 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
156 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
157 |
* Return the MacLow associated with this EdcaTxopN. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
158 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
159 |
* \return MacLow |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
160 |
*/ |
4408 | 161 |
Ptr<MacLow> Low (void); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
162 |
|
4408 | 163 |
Ptr<MsduAggregator> GetMsduAggregator (void) const; |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
164 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
165 |
* \param recipient address of the peer station |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
166 |
* \param tid traffic ID. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
167 |
* \return true if a block ack agreement exists, false otherwise |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
168 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
169 |
* Checks if a block ack agreement exists with station addressed by |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
170 |
* <i>recipient</i> for tid <i>tid</i>. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
171 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
172 |
bool GetBaAgreementExists (Mac48Address address, uint8_t tid); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
173 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
174 |
* \param recipient address of peer station involved in block ack mechanism. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
175 |
* \param tid traffic ID. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
176 |
* \return the number of packets buffered for a specified agreement |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
177 |
* |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
178 |
* Returns number of packets buffered for a specified agreement. |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
179 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
180 |
uint32_t GetNOutstandingPacketsInBa (Mac48Address address, uint8_t tid); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
181 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
182 |
* \param recipient address of peer station involved in block ack mechanism. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
183 |
* \param tid traffic ID. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
184 |
* \return the number of packets for a specific agreement that need retransmission |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
185 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
186 |
* Returns number of packets for a specific agreement that need retransmission. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
187 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
188 |
uint32_t GetNRetryNeededPackets (Mac48Address recipient, uint8_t tid) const; |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
189 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
190 |
* \param recipient address of peer station involved in block ack mechanism. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
191 |
* \param tid Ttraffic ID of transmitted packet. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
192 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
193 |
* This function resets the status of OriginatorBlockAckAgreement after the transfer |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
194 |
* of an A-MPDU with ImmediateBlockAck policy (i.e. no BAR is scheduled) |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
195 |
*/ |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
196 |
void CompleteAmpduTransfer (Mac48Address recipient, uint8_t tid); |
4408 | 197 |
|
198 |
/* dcf notifications forwarded here */ |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
199 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
200 |
* Check if the EDCAF requires access. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
201 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
202 |
* \return true if the EDCAF requires access, |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
203 |
* false otherwise |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
204 |
*/ |
4408 | 205 |
bool NeedsAccess (void) const; |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
206 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
207 |
* Notify the EDCAF that access has been granted. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
208 |
*/ |
4408 | 209 |
void NotifyAccessGranted (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
210 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
211 |
* Notify the EDCAF that internal collision has occurred. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
212 |
*/ |
4408 | 213 |
void NotifyInternalCollision (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
214 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
215 |
* Notify the EDCAF that collision has occurred. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
216 |
*/ |
4408 | 217 |
void NotifyCollision (void); |
5192 | 218 |
/** |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
219 |
* When a channel switching occurs, enqueued packets are removed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
220 |
*/ |
5189 | 221 |
void NotifyChannelSwitching (void); |
11159
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
222 |
/** |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
223 |
* When sleep operation occurs, re-insert pending packet into front of the queue |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
224 |
*/ |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
225 |
void NotifySleep (void); |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
226 |
/** |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
227 |
* When wake up operation occurs, restart channel access |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
228 |
*/ |
b744c32b69bc
patch to support IEEE 1609.4 MAC extension in wave module
Junling Bu <linlinjavaer@gmail.com>
parents:
11083
diff
changeset
|
229 |
void NotifyWakeUp (void); |
4408 | 230 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
231 |
/* Event handlers */ |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
232 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
233 |
* Event handler when a CTS is received. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
234 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
235 |
* \param snr |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
236 |
* \param txMode |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
237 |
*/ |
4408 | 238 |
void GotCts (double snr, WifiMode txMode); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
239 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
240 |
* Event handler when a CTS timeout has occurred. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
241 |
*/ |
4408 | 242 |
void MissedCts (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
243 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
244 |
* Event handler when an ACK is received. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
245 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
246 |
* \param snr |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
247 |
* \param txMode |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
248 |
*/ |
4408 | 249 |
void GotAck (double snr, WifiMode txMode); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
250 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
251 |
* Event handler when a Block ACK is received. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
252 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
253 |
* \param blockAck |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
254 |
* \param recipient |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
255 |
* \param txMode |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
256 |
*/ |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
257 |
void GotBlockAck (const CtrlBAckResponseHeader *blockAck, Mac48Address recipient, WifiMode txMode); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
258 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
259 |
* Event handler when a Block ACK timeout has occurred. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
260 |
*/ |
5958 | 261 |
void MissedBlockAck (void); |
5953
9e400f6b8a2c
handle wifi action frames in high MACs
Mirko Banchi <mk.banchi@gmail.com>
parents:
5952
diff
changeset
|
262 |
void GotAddBaResponse (const MgtAddBaResponseHeader *respHdr, Mac48Address recipient); |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
263 |
void GotDelBaFrame (const MgtDelBaHeader *delBaHdr, Mac48Address recipient); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
264 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
265 |
* Event handler when an ACK is received. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
266 |
*/ |
4408 | 267 |
void MissedAck (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
268 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
269 |
* Start transmission for the next fragment. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
270 |
* This is called for fragment only. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
271 |
*/ |
4408 | 272 |
void StartNext (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
273 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
274 |
* Cancel the transmission. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
275 |
*/ |
4408 | 276 |
void Cancel (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
277 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
278 |
* Event handler when a transmission that |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
279 |
* does not require an ACK has completed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
280 |
*/ |
9176
41ab1e874804
Bug 555 - DCF immediate access fix
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
8981
diff
changeset
|
281 |
void EndTxNoAck (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
282 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
283 |
* Restart access request if needed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
284 |
*/ |
4408 | 285 |
void RestartAccessIfNeeded (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
286 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
287 |
* Request access from DCF manager if needed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
288 |
*/ |
4408 | 289 |
void StartAccessIfNeeded (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
290 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
291 |
* Check if the current packet should be sent with a RTS protection. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
292 |
* |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
293 |
* \return true if RTS protection should be used, |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
294 |
* false otherwise |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
295 |
*/ |
4408 | 296 |
bool NeedRts (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
297 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
298 |
* Check if RTS should be re-transmitted if CTS was missed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
299 |
* |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
300 |
* \return true if RTS should be re-transmitted, |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
301 |
* false otherwise |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
302 |
*/ |
4408 | 303 |
bool NeedRtsRetransmission (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
304 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
305 |
* Check if DATA should be re-transmitted if ACK was missed. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
306 |
* |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
307 |
* \return true if DATA should be re-transmitted, |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
308 |
* false otherwise |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
309 |
*/ |
4408 | 310 |
bool NeedDataRetransmission (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
311 |
/** |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
312 |
* Check if Block ACK Request should be re-transmitted. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
313 |
* |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
314 |
* \return true if BAR should be re-transmitted, |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
315 |
* false otherwise |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
316 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
317 |
bool NeedBarRetransmission (void); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
318 |
/** |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
319 |
* Check if the current packet should be fragmented. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
320 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
321 |
* \return true if the current packet should be fragmented, |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
322 |
* false otherwise |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
323 |
*/ |
4408 | 324 |
bool NeedFragmentation (void) const; |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
325 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
326 |
* Calculate the size of the next fragment. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
327 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
328 |
* \return the size of the next fragment |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
329 |
*/ |
4408 | 330 |
uint32_t GetNextFragmentSize (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
331 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
332 |
* Calculate the size of the current fragment. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
333 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
334 |
* \return the size of the current fragment |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
335 |
*/ |
4408 | 336 |
uint32_t GetFragmentSize (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
337 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
338 |
* Calculate the offset for the current fragment. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
339 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
340 |
* \return the offset for the current fragment |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
341 |
*/ |
4408 | 342 |
uint32_t GetFragmentOffset (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
343 |
/** |
11083
96e983e7cd5d
fix typos in wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
10483
diff
changeset
|
344 |
* Check if the current fragment is the last fragment. |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
345 |
* |
11083
96e983e7cd5d
fix typos in wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
10483
diff
changeset
|
346 |
* \return true if the current fragment is the last fragment, |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
347 |
* false otherwise |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
348 |
*/ |
4408 | 349 |
bool IsLastFragment (void) const; |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
350 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
351 |
* Continue to the next fragment. This method simply |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
352 |
* increments the internal variable that keep track |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
353 |
* of the current fragment number. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
354 |
*/ |
4408 | 355 |
void NextFragment (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
356 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
357 |
* Get the next fragment from the packet with |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
358 |
* appropriate Wifi header for the fragment. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
359 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
360 |
* \param hdr |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
361 |
* \return the fragment with the current fragment number |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
362 |
*/ |
4408 | 363 |
Ptr<Packet> GetFragmentPacket (WifiMacHeader *hdr); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
364 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
365 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
366 |
* Set the access category of this EDCAF. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
367 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
368 |
* \param ac |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
369 |
*/ |
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6294
diff
changeset
|
370 |
void SetAccessCategory (enum AcIndex ac); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
371 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
372 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
373 |
* \param packet packet to send |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
374 |
* \param hdr header of packet to send. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
375 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
376 |
* Store the packet in the internal queue until it |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
377 |
* can be sent safely. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
378 |
*/ |
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
379 |
void Queue (Ptr<const Packet> packet, const WifiMacHeader &hdr); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
380 |
|
4408 | 381 |
void SetMsduAggregator (Ptr<MsduAggregator> aggr); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
382 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
383 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
384 |
* \param packet packet to send |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
385 |
* \param hdr header of packet to send. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
386 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
387 |
* Store the packet in the front of the internal queue until it |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
388 |
* can be sent safely. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
389 |
*/ |
5952
0588b01cd77e
WifiMacQueue now supports head pushing
Mirko Banchi <mk.banchi@gmail.com>
parents:
5906
diff
changeset
|
390 |
void PushFront (Ptr<const Packet> packet, const WifiMacHeader &hdr); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
391 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
392 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
393 |
* Complete block ACK configuration. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
394 |
*/ |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
395 |
void CompleteConfig (void); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
396 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
397 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
398 |
* Set threshold for block ACK mechanism. If number of packets in the |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
399 |
* queue reaches the threshold, block ACK mechanism is used. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
400 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
401 |
* \param threshold |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
402 |
*/ |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
403 |
void SetBlockAckThreshold (uint8_t threshold); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
404 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
405 |
* Return the current threshold for block ACK mechanism. |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
406 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
407 |
* \return the current threshold for block ACK mechanism |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
408 |
*/ |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
409 |
uint8_t GetBlockAckThreshold (void) const; |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
410 |
|
6294
6cefb3c0696a
add methods in QosWifiMacHelper for block ack parameters setup
Mirko Banchi <mk.banchi@gmail.com>
parents:
6273
diff
changeset
|
411 |
void SetBlockAckInactivityTimeout (uint16_t timeout); |
5964
8a59a619c30e
add support to block ack tear down in MacLow
Mirko Banchi <mk.banchi@gmail.com>
parents:
5963
diff
changeset
|
412 |
void SendDelbaFrame (Mac48Address addr, uint8_t tid, bool byOriginator); |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
413 |
void CompleteMpduTx (Ptr<const Packet> packet, WifiMacHeader hdr, Time tstamp); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
414 |
bool GetAmpduExist (void); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
415 |
void SetAmpduExist (bool ampdu); |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
416 |
|
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
417 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
418 |
* Return the next sequence number for the given header. |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
419 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
420 |
* \param hdr Wi-Fi header |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
421 |
* |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
422 |
* \return the next sequence number |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
423 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
424 |
uint16_t GetNextSequenceNumberfor (WifiMacHeader *hdr); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
425 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
426 |
* Return the next sequence number for the Traffic ID and destination, but do not pick it (i.e. the current sequence number remains unchanged). |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
427 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
428 |
* \param hdr Wi-Fi header |
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
429 |
* |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
430 |
* \return the next sequence number |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
431 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
432 |
uint16_t PeekNextSequenceNumberfor (WifiMacHeader *hdr); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
433 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
434 |
* Remove a packet after you peek in the retransmit queue and get it |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
435 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
436 |
void RemoveRetransmitPacket (uint8_t tid, Mac48Address recipient, uint16_t seqnumber); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
437 |
/* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
438 |
* Peek in retransmit queue and get the next packet without removing it from the queue |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
439 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
440 |
Ptr<const Packet> PeekNextRetransmitPacket (WifiMacHeader &header, Mac48Address recipient, uint8_t tid, Time *timestamp); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
441 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
442 |
* The packet we sent was successfully received by the receiver |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
443 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
444 |
* \param hdr the header of the packet that we successfully sent |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
445 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
446 |
void BaTxOk (const WifiMacHeader &hdr); |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
447 |
/** |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
448 |
* The packet we sent was successfully received by the receiver |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
449 |
* |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
450 |
* \param hdr the header of the packet that we failed to sent |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
451 |
*/ |
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
452 |
void BaTxFailed (const WifiMacHeader &hdr); |
4408 | 453 |
|
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
454 |
/** |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
455 |
* Assign a fixed random variable stream number to the random variables |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
456 |
* used by this model. Return the number of streams (possibly zero) that |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
457 |
* have been assigned. |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
458 |
* |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
459 |
* \param stream first stream index to use |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
460 |
* \return the number of stream indices assigned by this model |
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
461 |
*/ |
8981
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
462 |
int64_t AssignStreams (int64_t stream); |
7e1c95c4d1a7
Replace src/wifi usage of RandomVariable with RandomVariableStream
Mitch Watrous
parents:
7386
diff
changeset
|
463 |
|
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
464 |
|
4408 | 465 |
private: |
9703
681f35b212ff
Rename Start and DoStart methods to Initialize and DoInitialize
Vedran Miletić <rivanvx@gmail.com>
parents:
9176
diff
changeset
|
466 |
void DoInitialize (); |
4408 | 467 |
/** |
468 |
* This functions are used only to correctly set addresses in a-msdu subframe. |
|
469 |
* If aggregating sta is a STA (in an infrastructured network): |
|
470 |
* SA = Address2 |
|
471 |
* DA = Address3 |
|
472 |
* If aggregating sta is an AP |
|
473 |
* SA = Address3 |
|
474 |
* DA = Address1 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
475 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
476 |
* \param hdr |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
477 |
* \return Mac48Address |
4408 | 478 |
*/ |
5819
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
479 |
Mac48Address MapSrcAddressForAggregation (const WifiMacHeader &hdr); |
514ec98954ab
Wifi code cleanup: Correcting various const keyword ordering and removing superfluous (boolean)?true:false.
Timo Bingmann <tbns@idlebox.net>
parents:
5192
diff
changeset
|
480 |
Mac48Address MapDestAddressForAggregation (const WifiMacHeader &hdr); |
4421
0608881b163f
help python bindings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4408
diff
changeset
|
481 |
EdcaTxopN &operator = (const EdcaTxopN &); |
0608881b163f
help python bindings
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
4408
diff
changeset
|
482 |
EdcaTxopN (const EdcaTxopN &); |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
483 |
|
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
484 |
/** |
11083
96e983e7cd5d
fix typos in wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
10483
diff
changeset
|
485 |
* If number of packets in the queue reaches m_blockAckThreshold value, an ADDBA Request frame |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
486 |
* is sent to destination in order to setup a block ack. |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
487 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
488 |
* \return true if we tried to set up block ACK, false otherwise |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
489 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
490 |
bool SetupBlockAckIfNeeded (); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
491 |
/** |
11083
96e983e7cd5d
fix typos in wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
10483
diff
changeset
|
492 |
* Sends an ADDBA Request to establish a block ack agreement with sta |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
493 |
* addressed by <i>recipient</i> for tid <i>tid</i>. |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
494 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
495 |
* \param recipient |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
496 |
* \param tid |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
497 |
* \param startSeq |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
498 |
* \param timeout |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
499 |
* \param immediateBAck |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
500 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
501 |
void SendAddBaRequest (Mac48Address recipient, uint8_t tid, uint16_t startSeq, |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
502 |
uint16_t timeout, bool immediateBAck); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
503 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
504 |
* After that all packets, for which a block ack agreement was established, have been |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
505 |
* transmitted, we have to send a block ack request. |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
506 |
* |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
507 |
* \param bar |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
508 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
509 |
void SendBlockAckRequest (const struct Bar &bar); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
510 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
511 |
* For now is typically invoked to complete transmission of a packets sent with ack policy |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
512 |
* Block Ack: the packet is buffered and dcf is reset. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
513 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
514 |
void CompleteTx (void); |
10483
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
515 |
/** |
e3a02ed14587
[doxygen] wifi module
Daniel Lertpratchya <nikkipui@gmail.com>
parents:
10459
diff
changeset
|
516 |
* Verifies if dequeued packet has to be transmitted with ack policy Block Ack. This happens |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
517 |
* if an established block ack agreement exists with the receiver. |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
518 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
519 |
void VerifyBlockAck (void); |
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
520 |
|
6331
eee2eab36748
Bug 910: Replace AccessClass with 802.11-style AcIndex
Dean Armstrong <deanarm@gmail.com>
parents:
6294
diff
changeset
|
521 |
AcIndex m_ac; |
4408 | 522 |
class Dcf; |
523 |
class TransmissionListener; |
|
11352
a1f6f647d516
add two-level aggregation
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11174
diff
changeset
|
524 |
class AggregationCapableTransmissionListener; |
4408 | 525 |
friend class Dcf; |
526 |
friend class TransmissionListener; |
|
527 |
Dcf *m_dcf; |
|
528 |
DcfManager *m_manager; |
|
529 |
Ptr<WifiMacQueue> m_queue; |
|
530 |
TxOk m_txOkCallback; |
|
531 |
TxFailed m_txFailedCallback; |
|
532 |
Ptr<MacLow> m_low; |
|
533 |
MacTxMiddle *m_txMiddle; |
|
534 |
TransmissionListener *m_transmissionListener; |
|
11352
a1f6f647d516
add two-level aggregation
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11174
diff
changeset
|
535 |
AggregationCapableTransmissionListener *m_blockAckListener; |
4408 | 536 |
RandomStream *m_rng; |
537 |
Ptr<WifiRemoteStationManager> m_stationManager; |
|
538 |
uint8_t m_fragmentNumber; |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
539 |
|
4408 | 540 |
/* current packet could be a simple MSDU or, if an aggregator for this queue is |
541 |
present, could be an A-MSDU. |
|
542 |
*/ |
|
543 |
Ptr<const Packet> m_currentPacket; |
|
6674
52f8688d6d01
Bug 978: Run check-style.py on files touched in the reorganisation
Dean Armstrong <deanarm@gmail.com>
parents:
6673
diff
changeset
|
544 |
|
4408 | 545 |
WifiMacHeader m_currentHdr; |
546 |
Ptr<MsduAggregator> m_aggregator; |
|
547 |
TypeOfStation m_typeOfStation; |
|
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
548 |
QosBlockedDestinations *m_qosBlockedDestinations; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
549 |
BlockAckManager *m_baManager; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
550 |
/* |
6273
8d70de29d514
spell check, mostly in comments.
Andrey Mazo <mazo@iitp.ru>
parents:
6080
diff
changeset
|
551 |
* Represents the minimum number of packets for use of block ack. |
5963
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
552 |
*/ |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
553 |
uint8_t m_blockAckThreshold; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
554 |
enum BlockAckType m_blockAckType; |
5f82c5a7068e
add support to block ack in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5958
diff
changeset
|
555 |
Time m_currentPacketTimestamp; |
5965
4e64e751be07
add support to block ack tear down in EdcaTxopN
Mirko Banchi <mk.banchi@gmail.com>
parents:
5964
diff
changeset
|
556 |
uint16_t m_blockAckInactivityTimeout; |
6485
429560e899ab
Bug 842 - During retransmission of a BAR i must wait for a Block ack response and not for a normal ack
Mirko Banchi <mk.banchi@gmail.com>
parents:
6331
diff
changeset
|
557 |
struct Bar m_currentBar; |
11174
780a43e4980c
add MPDU aggregation (with contributions from Sebastien Deronne and Ioannis Selinis)
Ghada Badawy <gbadawy@gmail.com>
parents:
11159
diff
changeset
|
558 |
bool m_ampduExist; |
4408 | 559 |
}; |
560 |
||
11450
9f4ae69f12b7
cleanup wifi module
Sébastien Deronne <sebastien.deronne@gmail.com>
parents:
11352
diff
changeset
|
561 |
} //namespace ns3 |
4408 | 562 |
|
563 |
#endif /* EDCA_TXOP_N_H */ |