Patch for Ubuntu 12.04

Tested and worked fine in WIFI mode. BT was not tested.