A Cross-Layer Location-Based Approach for Mobile-Controlled Connectivity