Hello all,
I am new to ns3 and have started to use Laa-wifi-coexistence module for my
research. I have started with the file ‘laa-wifi-simple.cc’ and the
corresponding ‘laa-wifi-coexistence-helper.cc’ files. To understand the module
I started to print the values of variables to understand the flow of code and
also so that I could change those values for my simulation setup. I am using the code available on 'https://bitbucket.org/ns3lteu/ns-3-dev-lbt/branch/laa-wifi-coexistence-rebased'.
I want to assign different transmit power values to both the single LTE eNB and WiFi AP. I understood the these parameters are being set in ‘laa-wifi-simple.cc’ file through the struct PhyParams and being then forwarded to ‘laa-wifi-coexistence-helper.cc’ to assigned to WiFi node through the class SpectrumWifiPhyHelper.
I am not able to understand where is transmit power of LTE eNB is set. I studied the documentation and found a variable ‘TxPower’ for LteEnbPhy class. Based on this I made the addition of following lines to the code of ‘laa-wifi-coexistence-helper.cc’ file but it is giving the error attached.
Ptr <LteEnbPhy> enbPhy =lteEnbNetDevice -> Getphy ();
Ptr <LteEnbPhy> enbPhy =SetAttribute (“TxPower”, DoubleValue(30.0));