Commit Graph

4883 Commits

Author SHA1 Message Date
Mathieu Lacage
9631233a27 inline a few more functions for optimization 2010-07-05 16:49:41 +02:00
Mathieu Lacage
618ba84f4f avoid floating point multiplication and division to ensure reproducible results 2010-07-05 16:38:11 +02:00
Mathieu Lacage
8fcd5695d9 avoid use of doubles to avoid rounding errors. 2010-07-05 16:32:29 +02:00
Mathieu Lacage
8ab52be3ab a new testcase 2010-07-05 11:11:16 +02:00
Mathieu Lacage
698c8b1e2a bug 826: optimize hp implementation for 32bit systems 2010-07-05 10:15:42 +02:00
Mathieu Lacage
895f08bda3 no need to bother with ignored return value 2010-07-05 09:58:32 +02:00
Mathieu Lacage
edcacfe1e4 add extra test assert 2010-07-05 09:58:00 +02:00
Mathieu Lacage
4a3340f171 remove dead comment 2010-07-05 09:57:46 +02:00
Mathieu Lacage
7cf93d3cef oops build script typo 2010-07-05 07:47:06 +02:00
Tom Henderson
a92410589b move spectrum-interference test suite into test framework 2010-07-04 14:40:12 -07:00
Mathieu Lacage
9d600946a2 merge with ns-3-dev 2010-07-04 17:07:47 +02:00
Mathieu Lacage
e13d7187e4 inline new high precision implementation 2010-07-04 17:07:07 +02:00
Mathieu Lacage
c444b8b4f0 merge with HEAD 2010-07-04 16:37:20 +02:00
Mathieu Lacage
3f9f3f0c98 forgot to add implementation 2010-07-04 16:36:52 +02:00
Mathieu Lacage
c00e63b4b4 introduce new hp implementation for 64bit boxes 2010-07-04 16:35:19 +02:00
Mathieu Lacage
3398b554e4 remove un-needed include 2010-07-04 16:34:42 +02:00
iamine
c309dd62fe Fix Bug 905 - WimaxNetDevice loses packet uid, tags, and memory optimization 2010-07-04 15:52:12 +02:00
Tom Henderson
34fcbcf287 eliminate some warnings breaking builds 2010-07-03 15:52:09 -07:00
Tom Henderson
58225f43ce Provide virtual destructors for interface classes 2010-07-02 21:15:46 -07:00
Luca Favatella
e67a613a5f fix duplication in wscript 2010-07-01 10:17:39 -04:00
Mathieu Lacage
2157f7a345 run check-style.py 2010-07-01 12:50:22 +02:00
Mathieu Lacage
dca9b98db2 improve error reporting in case of assert failures. 2010-07-01 12:38:06 +02:00
Tom Henderson
663312ffd8 fix possibly uninitialized variables 2010-06-30 21:19:21 -07:00
Josh Pelkey
7faa97eab8 remove uan test temporarily 2010-06-30 20:35:49 -04:00
Josh Pelkey
2133aa49c5 ensure objects are regsitered 2010-06-29 20:24:20 -04:00
Josh Pelkey
03a9879490 fix rocket-fuel example valgrind issue 2010-06-28 14:45:56 -04:00
Dean Armstrong
682a93ca39 Bug 881: Add missing rename of SerializeIE to Serialize. 2010-06-28 09:19:21 +01:00
Pavel Boyko
5afa1764af bug 473: initialize variables 2010-06-28 11:29:22 +04:00
Josh Pelkey
8b89e7b233 Cleanup use of namespace specifiers in uan 2010-06-27 20:37:49 -07:00
Tom Henderson
e6328110db Cleanup object registration for uan 2010-06-27 20:27:30 -07:00
Josh Pelkey
bfa660bed1 remove unimplemented method in uan module 2010-06-26 11:34:43 -04:00
Josh Pelkey
b381cbfaac fix uan for python scan, add default constructor 2010-06-25 13:50:45 -04:00
Dean Armstrong
cf303ac4ef Bug 881: WifiInformationElement method renaming
Some renaming proposed by Nicola:

SerializeInformation => SerializeInformationField
DeserializeInformation => DeserializeInformationField
DeserializeIE => Deserialize
SerializeIE => Serialize

...and some I've extrapolated:

GetInformationSize => GetInformationFieldSize
DeserializeOptionalIE => DeserializeIfPresent
2010-06-25 12:32:17 +01:00
Dean Armstrong
28e92f93c1 Bug 881: Make Ssid and SupportedRates derive from WifiInformationElement 2010-06-22 12:05:08 +01:00
Dean Armstrong
ec753ce95d Bug 881: Bring Wi-Fi IE serdes intelligence into WifiInformationElement object
Introduce WifiInformationElement methods SerializeIE(),
DeserializeIE(), and DeserializeOptionalIE() (the latter for use when
the IE of interest might not be present), which know how to deal with
the IE as a whole.

Make use of these in mesh subsystem where WifiInformationElement-derived
objects are used.

Also add empty implementation of Print() method of
WifiInformationElement so that IEs that don't care about being
displayed don't need to implement this.
2010-06-22 11:59:26 +01:00
Dean Armstrong
acebf39957 Bug 881: Change WifiElementId to WifiInformationElementId 2010-06-22 11:50:55 +01:00
Dean Armstrong
51e894c77d Bug 881: Extract WifiInformationElement(Vector) core to wifi module
This patch aims to bring the core of the current WifiInformationElement and
WifiInformationElementVector classes into the wifi module, where they can then
enjoy greater use (currently they are in the mesh module and contain
mesh-specific aspects).
2010-06-25 11:50:06 +01:00
Leonard Tracy
3353f641c6 UAN module addition 2010-06-24 14:35:29 -04:00
Hajime Tazaki
b6093c6789 Bug 946 - Rocketfuel topology dataset support for topology reader 2010-06-23 18:16:45 +09:00
Dean Armstrong
e54fea5648 Bug 853: Use consistent standards/rates for examples and tests that use Wi-Fi
The change to consider mandatory rates for control responses if a
suitable basic rate could not be found broke the tests involving the
wireless/wifi-simple-adhoc-grid example, and the
routing-olsr-regression testsuite.

In these cases it is actually the tests that need updating; in the
wifi-simple-adhoc-grid test and the bug780-test part of the
routing-olsr-regression testsuite, 802.11b rates were being used with
the Wi-Fi PHY standard left at the default of 802.11a. The fix here is
to set the standard to 802.11b in the test.

In the tx-regression-test part of routing-olsr-regression, the problem
was that the reference traces needed to be updated given the control
response rate fix.  In this case I have also modified the test to set
the standard to 802.11a for clarity.
2010-06-23 09:01:30 +01:00
Dean Armstrong
cd6ccc184e Bug 853: Consider mandatory rates for Wi-Fi control responses
This changeset modifies the GetControlAnswerMode() method of class
WifiRemoteStationManager to correctly identify rates within the same
modulation class as the received frame, and then adds a search for a
suitable mandatory rate in the case where no suitable (per IEEE Std.
802.11-2007, Section 9.6) basic rate has been found.

I've also taken the opportunity to "tidy" the code up a bit -
primarily through renaming of variables to something more in line with
the nomenclature used in the standard.

Note that this change exposes issues in some of the test and example
code that uses the Wi-Fi models. These issues are addressed in a
following changelist.
2010-06-23 08:47:29 +01:00
Quincy Tse
38e14ee828 add missing files 2010-06-23 06:43:21 +02:00
Quincy Tse
074a1f7c0e bug 933: Flushing ostream and files on abnormal program exit 2010-06-22 15:44:10 +02:00
Martín Giachino
2b36eff9bc 473: brand new NS-2 mobility trace reader merged 2010-06-20 17:21:22 +04:00
Gustavo J. A. M. Carneiro
6e399c05a4 Add missing <math.h> include 2010-06-19 17:10:57 +01:00
Tom Henderson
f83cd3308f Fix gcc-3.4 build issues 2010-06-18 21:02:33 -07:00
Dean Armstrong
ebb9193ef9 Bug 871: Rework construction of Wi-Fi rates
This patch attempts to lay some groundwork for enhancements to the Wi-Fi module
by bringing the representation of transmit rates more in line with the
standard.

The key part of the patch is the introduction of a type that corresponds to the
notion of Modulation Class described in IEEE 802.11-2007, Section 9.6.1, Table
9-2.

It also adds coding rate information to the WifiModes and centralises their
construction into a single WifiModeFactory method. The rates are also renamed
with reference to their Modulation Class.

WifiModes no longer have a WifiStandard, but the latter type still exists and is
used to imply the set of WifiModes that a MAC/PHY pair will support.
2010-06-16 10:55:13 +01:00
Tom Henderson
b77c2830c5 Align WifiHelper logging with new ErrorRateModel classes 2010-06-15 11:27:51 -07:00
Gary Pei
a1fd50d60e Add NistErrorRateModel for wifi 2010-06-15 10:28:51 -07:00
Gary Pei
90a6f330f4 Factor out DSSS error rate functions to separate class 2010-06-15 10:26:48 -07:00