qca9888: add bdf for TP-Link TL-WA1201 v2 #114
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BDF info | |
| on: pull_request | |
| jobs: | |
| determine_changed_files: | |
| name: Determine Changed Files | |
| uses: openwrt/actions-shared-workflows/.github/workflows/reusable_determine_changed_files.yml@main | |
| determine_changed_bdfs: | |
| name: Determine changed BDF-s | |
| needs: determine_changed_files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| ath10k_changed_bdfs: ${{ steps.find_bdfs.outputs.ath10k_changed_bdfs }} | |
| ath11k_changed_bdfs: ${{ steps.find_bdfs.outputs.ath11k_changed_bdfs }} | |
| ath12k_changed_bdfs: ${{ steps.find_bdfs.outputs.ath12k_changed_bdfs }} | |
| steps: | |
| - name: Determine changed BDF-s | |
| id: find_bdfs | |
| run: | | |
| # grep will return 1 if no matches, so ignore return code | |
| set +e | |
| # Find list of ath10k changed BDF-s | |
| ATH10K_CHANGED_BDFS="$(echo ${{ needs.determine_changed_files.outputs.all_changed_files }} | tr ' ' '\n' | grep -E '.qca4019|.qca9888|.qca9889|.qca9984|.qca9988|.qca99x0')" | |
| # Find list of ath11k changed BDF-s | |
| ATH11K_CHANGED_BDFS="$(echo ${{ needs.determine_changed_files.outputs.all_changed_files }} | tr ' ' '\n' | grep -E '.ipq5018|.ipq6018|.ipq8074|.qcn6122|.qcn9074')" | |
| # Find list of ath12k changed BDF-s | |
| ATH12K_CHANGED_BDFS="$(echo ${{ needs.determine_changed_files.outputs.all_changed_files }} | tr ' ' '\n' | grep -E '.qcn9274|.wcn7850')" | |
| echo "ath10k_changed_bdfs="$ATH10K_CHANGED_BDFS"" >> $GITHUB_OUTPUT | |
| echo "ath11k_changed_bdfs="$ATH11K_CHANGED_BDFS"" >> $GITHUB_OUTPUT | |
| echo "ath12k_changed_bdfs="$ATH12K_CHANGED_BDFS"" >> $GITHUB_OUTPUT | |
| print_bdf_info: | |
| name: Print BDF info | |
| if: ${{ needs.determine_changed_bdfs.outputs.ath10k_changed_bdfs != '' || needs.determine_changed_bdfs.outputs.ath11k_changed_bdfs != '' || needs.determine_changed_bdfs.outputs.ath12k_changed_bdfs != '' }} | |
| needs: determine_changed_bdfs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Get required tools | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: qca/qca-swiss-army-knife | |
| path: qca_tools | |
| sparse-checkout: | | |
| tools/scripts/ath10k/ath10k-bdencoder | |
| tools/scripts/ath11k/ath11k-bdencoder | |
| tools/scripts/ath12k/ath12k-bdencoder | |
| sparse-checkout-cone-mode: false | |
| - name: Print ath10k BDF info | |
| if: ${{ needs.determine_changed_bdfs.outputs.ath10k_changed_bdfs != '' }} | |
| run: | | |
| for BDF in ${{ needs.determine_changed_bdfs.outputs.ath10k_changed_bdfs }}; do | |
| echo "BDF info for $BDF" | |
| python qca_tools/tools/scripts/ath10k/ath10k-bdencoder -i "$BDF" | |
| done | |
| - name: Print ath11k BDF info | |
| if: ${{ needs.determine_changed_bdfs.outputs.ath11k_changed_bdfs != '' }} | |
| run: | | |
| for BDF in ${{ needs.determine_changed_bdfs.outputs.ath11k_changed_bdfs }}; do | |
| echo "BDF info for $BDF" | |
| python qca_tools/tools/scripts/ath11k/ath11k-bdencoder -i "$BDF" | |
| done | |
| - name: Print ath12k BDF info | |
| if: ${{ needs.determine_changed_bdfs.outputs.ath12k_changed_bdfs != '' }} | |
| run: | | |
| for BDF in ${{ needs.determine_changed_bdfs.outputs.ath12k_changed_bdfs }}; do | |
| echo "BDF info for $BDF" | |
| python qca_tools/tools/scripts/ath12k/ath12k-bdencoder -i "$BDF" | |
| done |