Backported the media_internet_access() function.