Spectrum sensing performance of cognitive radio under awgn and fading channel conditions