Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7520b1d authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville
Browse files

b43: HT-PHY: add place for writing HT PHY support



This is totally broken plus we do not have specs for HT PHY yet. Just
introduce place for writing driver if we discover anything.

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 443c1a24
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -112,6 +112,14 @@ config B43_PHY_LP
	  and embedded devices. It supports 802.11a/g
	  (802.11a support is optional, and currently disabled).

config B43_PHY_HT
	bool "Support for HT-PHY devices (BROKEN)"
	depends on B43 && BROKEN
	---help---
	  Support for the HT-PHY.

	  Say N, this is BROKEN and crashes driver.

# This config option automatically enables b43 LEDS support,
# if it's possible.
config B43_LEDS
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ b43-y += phy_a.o
b43-$(CONFIG_B43_PHY_N)		+= phy_n.o
b43-$(CONFIG_B43_PHY_LP)	+= phy_lp.o
b43-$(CONFIG_B43_PHY_LP)	+= tables_lpphy.o
b43-$(CONFIG_B43_PHY_HT)	+= phy_ht.o
b43-y				+= sysfs.o
b43-y				+= xmit.o
b43-y				+= lo.o
+10 −0
Original line number Diff line number Diff line
@@ -4096,6 +4096,12 @@ static int b43_phy_versioning(struct b43_wldev *dev)
		if (phy_rev > 2)
			unsupported = 1;
		break;
#endif
#ifdef CONFIG_B43_PHY_HT
	case B43_PHYTYPE_HT:
		if (phy_rev > 1)
			unsupported = 1;
		break;
#endif
	default:
		unsupported = 1;
@@ -4153,6 +4159,10 @@ static int b43_phy_versioning(struct b43_wldev *dev)
		if (radio_ver != 0x2062 && radio_ver != 0x2063)
			unsupported = 1;
		break;
	case B43_PHYTYPE_HT:
		if (radio_ver != 0x2059)
			unsupported = 1;
		break;
	default:
		B43_WARN_ON(1);
	}
+6 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include "phy_a.h"
#include "phy_n.h"
#include "phy_lp.h"
#include "phy_ht.h"
#include "b43.h"
#include "main.h"

@@ -57,6 +58,11 @@ int b43_phy_allocate(struct b43_wldev *dev)
	case B43_PHYTYPE_LP:
#ifdef CONFIG_B43_PHY_LP
		phy->ops = &b43_phyops_lp;
#endif
		break;
	case B43_PHYTYPE_HT:
#ifdef CONFIG_B43_PHY_HT
		phy->ops = &b43_phyops_ht;
#endif
		break;
	}
+3 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ struct b43_phy_a;
struct b43_phy_g;
struct b43_phy_n;
struct b43_phy_lp;
struct b43_phy_ht;

struct b43_phy {
	/* Hardware operation callbacks. */
@@ -216,6 +217,8 @@ struct b43_phy {
		struct b43_phy_n *n;
		/* LP-PHY specific information */
		struct b43_phy_lp *lp;
		/* HT-PHY specific information */
		struct b43_phy_ht *ht;
	};

	/* Band support flags. */
Loading