src/wifi/model/wifi-phy.cc
changeset 10402 b4e0285d2f22
parent 10139 17a71cd49da3
child 10410 4d4eb8097fa3
equal deleted inserted replaced
10401:6e9d4ceb880b 10402:b4e0285d2f22
   258                // L-SIG
   258                // L-SIG
   259                return 4;
   259                return 4;
   260             }
   260             }
   261       }
   261       }
   262     case WIFI_MOD_CLASS_ERP_OFDM:
   262     case WIFI_MOD_CLASS_ERP_OFDM:
   263       return 16;
   263       return 4;
   264 
   264 
   265     case WIFI_MOD_CLASS_DSSS:
   265     case WIFI_MOD_CLASS_DSSS:
   266       if (preamble == WIFI_PREAMBLE_SHORT)
   266       if (preamble == WIFI_PREAMBLE_SHORT)
   267         {
   267         {
   268           // IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2
   268           // IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2
   307     case WIFI_MOD_CLASS_HT:
   307     case WIFI_MOD_CLASS_HT:
   308       { //IEEE 802.11n Figure 20.1 the training symbols before L_SIG or HT_SIG
   308       { //IEEE 802.11n Figure 20.1 the training symbols before L_SIG or HT_SIG
   309            return 16;
   309            return 16;
   310       }
   310       }
   311     case WIFI_MOD_CLASS_ERP_OFDM:
   311     case WIFI_MOD_CLASS_ERP_OFDM:
   312       return 4;
   312       return 16;
   313 
   313 
   314     case WIFI_MOD_CLASS_DSSS:
   314     case WIFI_MOD_CLASS_DSSS:
   315       if (preamble == WIFI_PREAMBLE_SHORT)
   315       if (preamble == WIFI_PREAMBLE_SHORT)
   316         {
   316         {
   317           // IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2
   317           // IEEE Std 802.11-2007, section 18.2.2.2 and figure 18-2