Optimal Hard Decision Fusion Rule for Centralized and Decentralized Cooperative Spectrum Sensing in Cognitive Radio Networks