Cognitive radio has attracted considerable attention as an enabling technology for addressing the problem of radio frequency shortages. In cognitive radio networks (CRNs), secondary users (SUs) are allowed to opportunistically utilize the licensed spectrum bands of primary users (PUs) when these bands are temporarily unused. Thus, SUs should monitor the licensed spectrum bands to detect any PU signal. According to the sensing outcomes, SUs should vacate the spectrum bands or may use them. Generally, the spectrum sensing accuracy depends on the sensing time which influences the overall throughput of SUs. That is, there is a fundamental tradeoff between the spectrum sensing time and the achievable throughput of SUs. To determine the optimal sensing time and improve the throughput of SUs, considerable efforts have been expended under the saturated traffic and ideal channel assumptions. However, these assumptions are hardly valid in practical CRNs. In this paper, we provide the framework of an 802.11-based medium access control for CRNs, and we analyze this framework to find the optimal spectrum sensing time under the saturated and unsaturated traffic condition. Through simulation, the proposed analytic model is verified and the fundamental problem of the sensing-throughput tradeoff for CRNs is investigated. [ABSTRACT FROM AUTHOR]