Re: How to deal with a new Wifi Adapter?

2019-04-10 Thread Thomas Haller via networkmanager-list
On Wed, 2019-04-10 at 12:24 -0400, Derek Atkins wrote:
> Hi,
> I'm currently running Fedora 29 and my embedded wifi adapter is
> failing.  So I bought a USB Wifi adapter, which seems to be working
> well..  Except for one problem:  Network Manager does not know to
> apply
> all my existing wifi connection information to the new adapter.
> 
> Short of going through each connection, changing it to the new
> adapter,
> then deleting the " 2" network that gets created --- is there
> some
> way to tell NM to apply all wifi networks to all wifi adapters?
> 

Hi,

I'd do:

UUIDS="$(nmcli -g TYPE,UUID connection show | \
sed -n 's/802-11-wireless://p')"

for UUID in $UUIDS; \
do \
nmcli \
   -f 
connection.id,connection.uuid,802-11-wireless.ssid,connection.interface-name,802-11-wireless.mac-address
 \
   -mode multiline \
   connection show uuid "$UUID" ; \
echo ; \
done

if you want to clear these values:

for UUID in $UUIDS; \
do \
echo "$UUID ..." ; \
nmcli connection modify uuid "$UUID" \
connection.interface-name '' \
wifi.mac-address '' ; \
done


> In a similar vein, is there a way to tell NM to disable to embedded
> wifi
> adapter?

put

  [device-unmanage-internal-wifi]
  match-device=mac:aa:bb:cc:dd:ee:ff
  managed=0

to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and
restart.

Or even blacklist the module from loading in /etc/modprobe.d.


best,
Thomas


signature.asc
Description: This is a digitally signed message part
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


How to deal with a new Wifi Adapter?

2019-04-10 Thread Derek Atkins
Hi,
I'm currently running Fedora 29 and my embedded wifi adapter is
failing.  So I bought a USB Wifi adapter, which seems to be working
well..  Except for one problem:  Network Manager does not know to apply
all my existing wifi connection information to the new adapter.

Short of going through each connection, changing it to the new adapter,
then deleting the " 2" network that gets created --- is there some
way to tell NM to apply all wifi networks to all wifi adapters?

In a similar vein, is there a way to tell NM to disable to embedded wifi
adapter?

Thanks,

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


ppp connection to apn with username + password

2019-04-10 Thread Belisko Marek via networkmanager-list
Hi,

I'm hitting strange issue with connecting to mobile broadband using sim5300
gsm modem. I setup gsm connection (set apn, username,password) and when put
connection up I get following snippet from ppp:

7382 sent [CCP ConfReq id=0x1   ]
7383 sent [IPCP ConfReq id=0x1]
7384 sent [IPV6CP ConfReq id=0x1 ]
7385 rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15]
7386 Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
7387 NetworkManager[495]:   [1553544907.3200] manager: (ppp0): new
Generic device (/org/freedesktop/NetworkManager/Devices/5)
7388 NetworkManager[495]:   [1553544907.4395] devices added (path:
/sys/devices/virtual/net/ppp0, iface: ppp0)
7389 NetworkManager[495]:   [1553544907.4398] device added (path:
/sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration
found.
7390 ModemManager[241]:  [1553544907.441723]
[../../ModemManager-1.6.4/src/mm-base-manager.c:364] device_added():
(net/ppp0): could not get port's parent device
7391 NetworkManager[495]:  [1553544907.4582] platform-linux: UDEV
event: action 'add' subsys 'net' device 'ppp0' (7); seqnum=1487
7392 NetworkManager[495]:  [1553544907.4594] platform: signal: link
changed: 7: ppp0  mtu 1500 arp 512
unknown/ppp init addrgenmode eui64 driver ppp rx:0,0 tx:0,0
7393 NetworkManager[495]:  [1553544907.4598] device[0x2988f0]
(ppp0): queued link change for ifindex 7
7394 NetworkManager[495]:  [1553544907.4757] device[0x2988f0]
(ppp0): unmanaged: flags set to
[platform-init,by-default,!sleeping,!loopback,!user-settings=0x110/0x159/unmanaged,
set-managed [user-settings=0x40])
7395 NetworkManager[495]:  [1553544907.4761] device[0x2988f0]
(ppp0): unmanaged: flags set to
[by-default,!sleeping,!loopback,!platform-init,!user-settings=0x100/0x159/manageable,
set-managed [platform-init=0x10], reason managed)
7396 NetworkManager[495]:  [1553544907.5040] device[0x2988f0]
(ppp0): ip4-config: update (commit=0, routes-full-sync=0,
new-config=0x2bf0b8)
7397 NetworkManager[495]:  [1553544907.5363] device[0x2988f0]
(ppp0): ip4-config: set IP4Config instance
(/org/freedesktop/NetworkManager/IP4Config/5)
7398 NetworkManager[495]:  [1553544907.5390] dns-mgr:
(device_ip4_config_changed): queueing DNS updates (1)
7399 NetworkManager[495]:  [1553544907.5411] dns-mgr:
(device_ip4_config_changed): DNS configuration did not change
7400 NetworkManager[495]:  [1553544907.5414] dns-mgr:
(device_ip4_config_changed): no DNS changes to commit (0)
7401 NetworkManager[495]:  [1553544907.5430] device[0x2988f0]
(ppp0): ip6-config: update (commit=0, routes-full-sync=0,
new-config=0x2d9290)
7402 NetworkManager[495]:  [1553544907.5594] device[0x2988f0]
(ppp0): ip6-config: set IP6Config instance
(/org/freedesktop/NetworkManager/IP6Config/5)
7403 NetworkManager[495]:  [1553544907.5602] dns-mgr:
(device_ip6_config_changed): queueing DNS updates (1)
7404 NetworkManager[495]:  [1553544907.5622] dns-mgr:
(device_ip6_config_changed): DNS configuration did not change
7405 NetworkManager[495]:  [1553544907.5624] dns-mgr:
(device_ip6_config_changed): no DNS changes to commit (0)
7406 NetworkManager[495]:  [1553544907.6086] device[0x2988f0]
(ppp0): emit RECHECK_ASSUME signal
7407 rcvd [LCP TermReq id=0x3]
7408 LCP terminated by peer
7409 nm-pppd-plugin-Message: nm-ppp-plugin: (nm_phasechange): status 5 /
phase 'establish'
7410 sent [LCP TermAck id=0x3]
7411 Modem hangup

basically get LCP terminated by peer (but not sure what that means). I have
debug logs for ModemManager also but it just continue getting signal level
and that's it. Any idea how to debug this further? Thanks.

BR,

marek

-- 
as simple and primitive as possible
-
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list