I am simulating routing protocol in wsn the orginal simulation was based on 802.11 mac and physical layer and I am using 802.15.4 as you know the transmission range in 802.15.4 is less, which formula I use to determine new density and maintain same connectivity and same number of node .