[brcmfmac] Fix caching of SDIO block size

The block size for SDIO is cached for performance reasons since it's
accessed for every transfer that needs to be aligned to block size.
Unfortunately caching happened before the block size was actually set.
This lead to the cached value having the factory default block size. In
the past we used the factory default value so it was not a problem. As
part of the network device work the block size was reduced and the
mismatch between cached value and actual block size became apparent.

Fortunately this hasn't led to any issues since the actual block size
was lower, all that happened was that we aligned to a stricter value
than necessary.

Bug: 100319
Test: manual testing, fx test brcmfmac_test brcmfmac_sdio_test
Change-Id: Ibb0f694050eeff8693747158ea318241ab05ad60
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/679450
Reviewed-by: Sakthi Vignesh Radhakrishnan <rsakthi@google.com>
Commit-Queue: Bjoern Johansson <bjoernj@google.com>
Reviewed-by: Karthik Krishnaswami <karthikrish@google.com>
1 file changed
tree: 6463ecd29a1b852ce73e1514bb2834cba3f55a0d
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. LICENSE
  28. OWNERS
  29. PATENTS
  30. pyrightconfig.json
  31. README.md
  32. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.