mirror of
https://github.com/qca/qca-swiss-army-knife.git
synced 2026-01-27 17:07:18 +01:00
Update ath10k-fw-repo
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
5ede3cc07e
commit
8633532930
1 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
#
|
||||
# Copyright (c) 2016 Qualcomm Atheros, Inc.
|
||||
# Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
|
|
@ -85,7 +85,10 @@ class FirmwareBranch():
|
|||
return False
|
||||
|
||||
if self.priority != other.priority:
|
||||
return self.priority < other.priority
|
||||
if self.priority < other.priority:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
return self.name < other.name
|
||||
|
||||
|
|
@ -388,14 +391,14 @@ def install_file(args, src, installdir, dest):
|
|||
|
||||
def get_firmware_version(path):
|
||||
cmd = ['ath10k-fwencoder', '--info', path]
|
||||
info = subprocess.check_output(cmd)
|
||||
info = subprocess.check_output(cmd, universal_newlines=True)
|
||||
msg = email.message_from_string(info)
|
||||
return msg['FirmwareVersion']
|
||||
|
||||
|
||||
def get_board_crc32(path):
|
||||
cmd = ['ath10k-fwencoder', '--crc32', path]
|
||||
return subprocess.check_output(cmd).strip()
|
||||
return subprocess.check_output(cmd, universal_newlines=True).strip()
|
||||
|
||||
|
||||
# print indent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue