I suggest you follow a similar query asked here : https://www.researchgate.net/post/How-can-I-simulate-the-algorithm-for-a-IEEE80211ac-PHY-layer-that-can-optimally-reflect-the-performance-of-a-real-circuit-implementation
See also::: https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=8468986