Bandwidth allocation for wired and wireless connections