66 virtual void DoReportFinalDataFailed (WifiRemoteStation *station); |
66 virtual void DoReportFinalDataFailed (WifiRemoteStation *station); |
67 virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station, uint32_t size); |
67 virtual WifiTxVector DoGetDataTxVector (WifiRemoteStation *station, uint32_t size); |
68 virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station); |
68 virtual WifiTxVector DoGetRtsTxVector (WifiRemoteStation *station); |
69 virtual bool IsLowLatency (void) const; |
69 virtual bool IsLowLatency (void) const; |
70 |
70 |
71 // return the min snr needed to successfully transmit |
71 /** |
72 // data with this mode at the specified ber. |
72 * Return the minimum SNR needed to successfully transmit |
|
73 * data with this mode at the specified BER. |
|
74 * |
|
75 * \param mode WifiMode |
|
76 * \return the minimum SNR for the given mode |
|
77 */ |
73 double GetSnrThreshold (WifiMode mode) const; |
78 double GetSnrThreshold (WifiMode mode) const; |
74 void AddModeSnrThreshold (WifiMode mode, double ber); |
79 /** |
|
80 * Adds a pair of WifiMode and the minimum SNR for that given mode |
|
81 * to the list. |
|
82 * |
|
83 * \param mode WifiMode |
|
84 * \param snr the minimum SNR for the given mode |
|
85 */ |
|
86 void AddModeSnrThreshold (WifiMode mode, double snr); |
75 |
87 |
|
88 /** |
|
89 * A vector of <snr, mode> pair that holds the minimum SNR for different mode |
|
90 */ |
76 typedef std::vector<std::pair<double,WifiMode> > Thresholds; |
91 typedef std::vector<std::pair<double,WifiMode> > Thresholds; |
77 |
92 |
78 double m_ber; |
93 double m_ber; |
79 Thresholds m_thresholds; |
94 Thresholds m_thresholds; |
80 }; |
95 }; |