ath9k_htc drivers for RHEL 6.4

This morning I packaged up ath9k_htc drivers for RHEL 6.4. This isn’t anything official, just something I knocked together. I’m using it with a TP-LINK TL-WN722N and kernel-2.6.32-358.2.1.el6.x86_64; it seems to work but your mileage may vary! RPMs here.

9 thoughts on “ath9k_htc drivers for RHEL 6.4

  1. According to the description, your package is based on ELRepo’s kmod, so it is actually kABI-tracking. Why would you say this won’t work on other kernels? I test-installed on my EL6 box and it did create a symlink from kernel 2.6.32-279.19.1.el6 (for example).

    Also, would you consider contributing this one to ELRepo?

  2. I didn’t know about the kABI-tracking, I just saw the hardwired paths to that specific kernel and assumed that it wouldn’t work with anything else.

    I’ve no problem with contributing it. What would I do, just mail the ELRepo list?

  3. Cheers for this,

    However when installing it, and trying to load the ath9k_htc module, I get:
    WARNING: Error inserting ath (/lib/modules/2.6.32-358.6.1.el6.x86_64/kernel/drivers/net/wireless/ath/ath.ko): Invalid module format
    WARNING: Error inserting ath9k_hw (/lib/modules/2.6.32-358.6.1.el6.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko): Invalid module format
    WARNING: Error inserting ath9k_common (/lib/modules/2.6.32-358.6.1.el6.x86_64/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko): Invalid module format
    WARNING: Error inserting mac80211 (/lib/modules/2.6.32-358.6.1.el6.x86_64/kernel/net/mac80211/mac80211.ko): Invalid module format
    FATAL: Error inserting ath9k_htc (/lib/modules/2.6.32-358.6.1.el6.x86_64/weak-updates/ath9k_htc/ath9k_htc.ko): Invalid module format

    and in the dmesg:
    cfg80211: exports duplicate symbol compat_genl_unregister_family (owned by compat)

    What kernel are you running and have you run into this?

  4. Ryan, it looks like you’re using newer kernel than I did. Try building the driver from source on your machine:

    wget http://inauspicious.org/files/ath9k_htc/kmod-ath9k_htc-20130307-1.gbenson.src.rpm
    sudo yum install rpm-build
    rpmbuild --rebuild kmod-ath9k_htc-20130307-1.gbenson.src.rpm
  5. Thanks for the reply, tried that too but to no avail. And now it looks like its stopped with the 2.6.32-358.2.1.el6.x86_64 kernel also, for me anyway

  6. Oh, that’s a pain.

    FWIW I’ve filed a request with the Red Hat kernel guys to have the driver enabled in the stock kernel. The head guy wasn’t aware that ath9k_htc was being used in USB adaptors (he thought it was only used in phones) and he seemed pretty amenable to the change.

    I bought another card in the end, once I realised keeping it working would be a pain. I’m using the ath9k_htc one on a Fedora box (where it works fine).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.