Skip to content

kano-wifi fails when using non-standard wifi dongle #351

@thecodenomad

Description

@thecodenomad

When using a non-standard (but completely supported) wifi dongle, kano-wifi bombs out with the following:

Traceback (most recent call last):
File "/usr/bin/kano-wifi", line 358, in
iwl = IWList(wiface).getList(unsecure=False, first=False)
File "/usr/lib/python2.7/dist-packages/kano/network.py", line 44, in init
self.refresh(iwlist=iwlist)
File "/usr/lib/python2.7/dist-packages/kano/network.py", line 209, in refresh
self.data = parseRawData(rawdata)
File "/usr/lib/python2.7/dist-packages/kano/network.py", line 88, in parseRawData
cellNumber, cellData = parseCellData("\n".join(s))
File "/usr/lib/python2.7/dist-packages/kano/network.py", line 172, in parseCellData
cellData["Channel"] = getCellChannel(s)
File "/usr/lib/python2.7/dist-packages/kano/network.py", line 121, in getCellChannel
return s.strip().split(" ")[3][0:-1]
IndexError: list index out of range

Please let me know what other information I can include to help debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions