clients: allow GSM and CDMA for Bluetooth connections

Unbreaks Bluetooth DUN. Probably broken with the nm-meta-setting-desc
refactor, hence the Fixes tag. I didn't actually check.

  $ nmcli c add type bluetooth ifname '*' bluetooth.bdaddr 1C:E2:CC:56:6C:45 connection.id bt bt-type dun-gsm
  Error: 'apn' argument is required.
  $ nmcli c add type bluetooth ifname '*' bluetooth.bdaddr 1C:E2:CC:56:6C:45 connection.id bt bt-type dun-gsm apn internet
  Error: invalid <setting>.<property> 'apn'.
  $

This is where it starts to get sad ^

  $ nmcli c add type bluetooth ifname '*' bluetooth.bdaddr 1C:E2:CC:56:6C:45 connection.id bt bt-type dun-gsm gsm.apn internet
  Error: invalid or not allowed setting 'gsm': 'gsm' not among [connection, bluetooth, bridge, ipv4, ipv6, proxy].
  $

This is where it gets obvious what went wrong ^

Fixes: b5c8622ad3
This commit is contained in:
Lubomir Rintel 2017-08-17 12:51:52 +02:00
parent 5df2c96be0
commit 0718b25508

View file

@ -6805,6 +6805,8 @@ const NMMetaSettingInfoEditor nm_meta_setting_infos_editor[] = {
NM_META_SETTING_VALID_PART_ITEM (CONNECTION, TRUE),
NM_META_SETTING_VALID_PART_ITEM (BLUETOOTH, TRUE),
NM_META_SETTING_VALID_PART_ITEM (BRIDGE, FALSE),
NM_META_SETTING_VALID_PART_ITEM (GSM, FALSE),
NM_META_SETTING_VALID_PART_ITEM (CDMA, FALSE),
),
.setting_init_fcn = _setting_init_fcn_bluetooth,
),