According to the topology of Wireless Mesh Sensor Networks (abbreviate to WMSN), and the channel access strategy of alternately listening/sleeping scheme, this paper study a neighbor-based adaptive listening/sleeping mechanism for WMSN. Based on the theory of queuing, the paper designed an algorithm named neighbor-based listening and sleeping algorithm (abbreviate to NLS) which can adaptively arrange the duty cycle of transmission frame. On the account of three typical topology for WMSN and consider the neighbor number of Mesh routers and sensor nodes, the performance of proposed scheme are simulated and studied under NS-2. The study results show that the combination of the WSN and WMN can be constructed to achieve full interconnection of heterogeneous mesh topology network. Application of queuing theory to establish the WMSN network multi-hop data transmission model can dynamically adjust listening time of different nodes. Using NLS algorithm, the throughput, delay and energy-efficiency of WMSN network are all improved to some extent.