Thread: force 3G only?
View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#16
To 'test' new mode of 3G only etc (Also changes the LTE as it is originally in ofono) I have recompiled ofono for Sailfish, from official sources of Jolla.

I have made some changes to ofono (ofono-1.14+git26.2-1.10.1 from Jolla repositories) and created rpms with a slighty higher version number (ofono-1.14+git26.2-1.10.2)

I have changed ofono/drivers/rilmodem/radio-settings.c

from

Code:
switch (mode) {
	case OFONO_RADIO_ACCESS_MODE_GSM:
		pref = PREF_NET_TYPE_GSM_ONLY;
		break;
	case OFONO_RADIO_ACCESS_MODE_UMTS:
		pref = PREF_NET_TYPE_GSM_WCDMA_AUTO; /* according to UI design */
		break;
	case OFONO_RADIO_ACCESS_MODE_LTE:
		pref = PREF_NET_TYPE_LTE_ONLY;
	default:
		break;
	}
to

Code:
switch (mode) {
	case OFONO_RADIO_ACCESS_MODE_ANY:
		pref = PREF_NET_TYPE_LTE_GSM_WCDMA;
		break;
	case OFONO_RADIO_ACCESS_MODE_GSM:
		pref = PREF_NET_TYPE_GSM_ONLY;
		break;
	case OFONO_RADIO_ACCESS_MODE_UMTS:
		pref = PREF_NET_TYPE_GSM_WCDMA;
		break;
	case OFONO_RADIO_ACCESS_MODE_LTE:
		pref = PREF_NET_TYPE_LTE_GSM_WCDMA;
		break;
	default:
		break;
	}
Feel free to see how this works

If you need to 'downgrade' just re-install ofono-1.14+git26.2-1.10.1.armv7hl.rpm (pkcon install ofono)
Attached Files
File Type: gz ofono.tar.gz (402.1 KB, 74 views)

Last edited by nieldk; 2014-06-19 at 11:58.
 

The Following 2 Users Say Thank You to For This Useful Post: