Assigning codes in wireless networks: bounds and scaling properties