In NetSim, data rate is set in a function fn_NetSim_IEEE802_11_PhyOut() present in IEEE802_11_Phy.c file inside IEEE802_11 project

 

In fn_NetSim_IEEE802_11_SetDataRate() function, based on the IEEE802.11 standard (802.11a, 802.11b, 802.11g, 802.11n, 802.11ac), respective function is called. For example, fn_NetSim_IEEE802_11_HTPhy_DataRate() is called for 802.11n/ac


The Physical layer parameters like data rate, receiver sensitivity, modulation, coding rate, mcs etc were set in fn_NetSim_IEEE802_11_HTPhy_DataRate() function

The structure for PHY layer parameters and their values based on bandwidth (20MHz, 40MHz, 80MHz, 160MHz) is present in IEEE802_11_HTPhy.c file inside IEEE802_11 project