61 { |
61 { |
62 static TypeId tid = TypeId ("ns3::NqstaWifiMac") |
62 static TypeId tid = TypeId ("ns3::NqstaWifiMac") |
63 .SetParent<WifiMac> () |
63 .SetParent<WifiMac> () |
64 .AddConstructor<NqstaWifiMac> () |
64 .AddConstructor<NqstaWifiMac> () |
65 .AddAttribute ("ProbeRequestTimeout", "XXX", |
65 .AddAttribute ("ProbeRequestTimeout", "XXX", |
66 Seconds (0.5), |
66 TimeValue (Seconds (0.5)), |
67 MakeTimeAccessor (&NqstaWifiMac::m_probeRequestTimeout), |
67 MakeTimeAccessor (&NqstaWifiMac::m_probeRequestTimeout), |
68 MakeTimeChecker ()) |
68 MakeTimeChecker ()) |
69 .AddAttribute ("AssocRequestTimeout", "XXX", |
69 .AddAttribute ("AssocRequestTimeout", "XXX", |
70 Seconds (0.5), |
70 TimeValue (Seconds (0.5)), |
71 MakeTimeAccessor (&NqstaWifiMac::m_assocRequestTimeout), |
71 MakeTimeAccessor (&NqstaWifiMac::m_assocRequestTimeout), |
72 MakeTimeChecker ()) |
72 MakeTimeChecker ()) |
73 .AddAttribute ("MaxMissedBeacons", |
73 .AddAttribute ("MaxMissedBeacons", |
74 "Number of beacons which much be consecutively missed before " |
74 "Number of beacons which much be consecutively missed before " |
75 "we attempt to restart association.", |
75 "we attempt to restart association.", |
76 Uinteger (10), |
76 UintegerValue (10), |
77 MakeUintegerAccessor (&NqstaWifiMac::m_maxMissedBeacons), |
77 MakeUintegerAccessor (&NqstaWifiMac::m_maxMissedBeacons), |
78 MakeUintegerChecker<uint32_t> ()) |
78 MakeUintegerChecker<uint32_t> ()) |
79 .AddAttribute ("ActiveProbing", "XXX", |
79 .AddAttribute ("ActiveProbing", "XXX", |
80 Boolean (false), |
80 BooleanValue (false), |
81 MakeBooleanAccessor (&NqstaWifiMac::SetActiveProbing), |
81 MakeBooleanAccessor (&NqstaWifiMac::SetActiveProbing), |
82 MakeBooleanChecker ()) |
82 MakeBooleanChecker ()) |
83 ; |
83 ; |
84 return tid; |
84 return tid; |
85 } |
85 } |